Package com.alibaba.dashscope.errors
Class ApiStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.alibaba.dashscope.errors.DashScopeException
com.alibaba.dashscope.errors.ApiStatusException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationException,BadRequestException,GatewayTimeoutException,InternalServerException,NotFoundException,PermissionDeniedException,RateLimitException,RequestTooLargeException,ServiceUnavailableException
A failure the gateway declared, on either layer of the dual error model: a non-2xx HTTP status,
or HTTP 200 whose body carries a business
code. The instance's statusCode says
which one it was. Unmapped wire codes land here directly (never guessed into a subclass).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.alibaba.dashscope.errors.DashScopeException
getBody, getCode, getHeaders, getRequestId, getStatusCode, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ApiStatusException
-
ApiStatusException
-