Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.exception.NonRetriableException
dev.langchain4j.exception.AuthenticationException
- All Implemented Interfaces:
Serializable
Thrown when a request is rejected because the supplied credentials are missing,
invalid, or insufficient (HTTP 401 / 403).
This is a NonRetriableException: retrying the same request with the same
credentials will not help. The caller should verify the API key or token and
reconfigure the client before retrying.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationException(String message) AuthenticationException(String message, Throwable cause) AuthenticationException(Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationException
-
AuthenticationException
-
AuthenticationException
-