Class NonRetriableException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationException, InvalidRequestException, ModelNotFoundException, UnresolvedModelServerException

public class NonRetriableException extends LangChain4jException
Indicates a permanent error for which retrying the same request will not help.

Typical causes include invalid credentials, a malformed request, or referencing a model that does not exist. Callers should inspect the specific subclass to decide how to recover (e.g. prompt the user to correct their input, or fail fast).

See Also:
  • Constructor Details

    • NonRetriableException

      public NonRetriableException(String message)
    • NonRetriableException

      public NonRetriableException(Throwable cause)
    • NonRetriableException

      public NonRetriableException(String message, Throwable cause)