Class InternalServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.agentscope.extensions.model.openai.exception.OpenAIException
io.agentscope.extensions.model.openai.exception.InternalServerException
- All Implemented Interfaces:
io.agentscope.core.model.ModelHttpException,Serializable
Exception thrown when the server encounters an internal error (HTTP 5xx).
This indicates a problem on OpenAI's side. Consider retrying the request after a brief wait.
Common status codes:
- 500 - Internal Server Error
- 502 - Bad Gateway
- 503 - Service Unavailable
- 504 - Gateway Timeout
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInternalServerException(String message, int statusCode, String errorCode, String responseBody) -
Method Summary
Methods inherited from class io.agentscope.extensions.model.openai.exception.OpenAIException
create, getErrorCode, getResponseBody, getStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.agentscope.core.model.ModelHttpException
isRetryableHttpStatus
-
Constructor Details
-
InternalServerException
-