Class OpenAiClientException

All Implemented Interfaces:
Serializable

public class OpenAiClientException extends ClientException
Generic exception for errors occurring when using OpenAI foundation models.
See Also:
  • Constructor Details

    • OpenAiClientException

      public OpenAiClientException()
    • OpenAiClientException

      public OpenAiClientException(String message)
    • OpenAiClientException

      public OpenAiClientException(Throwable cause)
    • OpenAiClientException

      public OpenAiClientException(String message, Throwable cause)
  • Method Details

    • getErrorResponse

      @Beta @Nullable public ErrorResponse getErrorResponse()
      Retrieves the ErrorResponse from the OpenAI service, if available.
      Returns:
      The ErrorResponse object, or null if not available.