Package xyz.felh.openai
Class OpenAiHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
xyz.felh.openai.OpenAiHttpException
- All Implemented Interfaces:
Serializable
Runtime Exception for HTTP
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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" https://platform.openai.com/docs/guides/error-codes/python-library-error-types
-
-
Constructor Details
-
OpenAiHttpException
-
-
Method Details
-
main
-