Class OpenAIRetryableException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class OpenAIRetryableException
    extends OpenAIException
                        

    Exception that indicates a transient error that can be retried.

    When this exception is thrown during an HTTP request, the SDK will automatically retry the request up to the maximum number of retries.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class kotlin.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenAIRetryableException

        OpenAIRetryableException(String message, Throwable cause)
        Parameters:
        message - A descriptive error message
        cause - The underlying cause of this exception, if any
      • OpenAIRetryableException

        OpenAIRetryableException(String message)
        Parameters:
        message - A descriptive error message
      • OpenAIRetryableException

        OpenAIRetryableException()
    • Method Detail