Class OpenAIException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.github.sashirestela.openai.exception.OpenAIException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OpenAIException.AuthenticationException,OpenAIException.BadRequestException,OpenAIException.InternalServerException,OpenAIException.NotFoundException,OpenAIException.PermissionDeniedException,OpenAIException.RateLimitException,OpenAIException.UnexpectedStatusCodeException,OpenAIException.UnprocessableEntityException
public class OpenAIException extends RuntimeException
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenAIException.AuthenticationExceptionstatic classOpenAIException.BadRequestExceptionstatic classOpenAIException.InternalServerExceptionstatic classOpenAIException.NotFoundExceptionstatic classOpenAIException.PermissionDeniedExceptionstatic classOpenAIException.RateLimitExceptionstatic classOpenAIException.UnexpectedStatusCodeExceptionstatic classOpenAIException.UnprocessableEntityException
-
Field Summary
Fields Modifier and Type Field Description protected OpenAIResponseInforesponseInfo
-
Constructor Summary
Constructors Constructor Description OpenAIException(OpenAIResponseInfo responseInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenAIResponseInfogetResponseInfo()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
responseInfo
protected final transient OpenAIResponseInfo responseInfo
-
-
Constructor Detail
-
OpenAIException
public OpenAIException(OpenAIResponseInfo responseInfo)
-
-
Method Detail
-
getResponseInfo
public OpenAIResponseInfo getResponseInfo()
-
-