Class OpenAiException

All Implemented Interfaces:
Serializable

public class OpenAiException extends RuntimeException
Author:
HamaWhite
See Also:
  • Field Details

    • statusCode

      public final int statusCode
      HTTP status code
    • code

      public final String code
      OpenAI error code, for example "invalid_api_key"
    • param

      public final String param
    • type

      public final String type
      OpenAI error type, for example "invalid_request_error" Error codes
  • Constructor Details

    • OpenAiException

      public OpenAiException(OpenAiError openAiError, Exception parent, int statusCode)