Class RetriableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.exception.RetriableException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InternalServerException, RateLimitException, TimeoutException
Indicates a transient error that may succeed if the request is retried.
Examples include temporary network issues, upstream server errors (5xx), and rate-limit rejections. Callers that implement a retry loop should catch this exception (or one of its subclasses) and back off before re-issuing the request.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRetriableException(String message) RetriableException(String message, Throwable cause) RetriableException(Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RetriableException
-
RetriableException
-
RetriableException
-