Package com.alibaba.dashscope.errors
Class DashScopeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.alibaba.dashscope.errors.DashScopeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApiConnectionException,ApiStatusException,SdkException
Base class for all DashScope 3.0 SDK errors. Unchecked by design (2.x checked exceptions leaked
into every signature).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDashScopeException(String message) DashScopeException(String message, String code, Integer statusCode, String requestId, Object body, Map<String, String> headers, Throwable cause) DashScopeException(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DashScopeException
-
DashScopeException
-
DashScopeException
-
-
Method Details
-
getCode
Public error code (e.g.BadRequestError) or wire code when unmapped; nullable. -
getStatusCode
HTTP status of the failed exchange; null for SDK-side failures. -
getRequestId
-
getBody
Raw response body (decoded JSON as Map/List, or raw text); nullable. -
getHeaders
-
toString
-