Class GPTException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.composum.ai.backend.base.service.GPTException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GPTException.GPTContextLengthExceededException
,GPTException.GPTRetryableResponseErrorException
public class GPTException extends RuntimeException
Any kind of error when accessing GPT.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GPTException.GPTContextLengthExceededException
static class
GPTException.GPTRetryableResponseErrorException
An exception that is thrown when the response from the GPT service is not as expected.
-
Constructor Summary
Constructors Constructor Description GPTException(String message)
GPTException(String message, Throwable cause)
GPTException(Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-