Package com.hw.openai.exception
Class OpenAiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hw.openai.exception.OpenAiException
- All Implemented Interfaces:
Serializable
- Author:
- HamaWhite
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
OpenAI error code, for example "invalid_api_key"final String
final int
HTTP status codefinal String
OpenAI error type, for example "invalid_request_error" Error codes -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
statusCode
public final int statusCodeHTTP status code -
code
OpenAI error code, for example "invalid_api_key" -
param
-
type
OpenAI error type, for example "invalid_request_error" Error codes
-
-
Constructor Details
-
OpenAiException
-