Class RetriableException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InternalServerException, RateLimitException, TimeoutException

public class RetriableException extends LangChain4jException
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 Details

    • RetriableException

      public RetriableException(String message)
    • RetriableException

      public RetriableException(Throwable cause)
    • RetriableException

      public RetriableException(String message, Throwable cause)