Package com.alibaba.dashscope.errors
Class SdkException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.alibaba.dashscope.errors.DashScopeException
com.alibaba.dashscope.errors.SdkException
- All Implemented Interfaces:
Serializable
A failure the SDK reported itself, with no HTTP response behind it. Carries the catalog's
solution (fix guidance) and allowRetry. statusCode stays null: the catalog gives
SDK-side errors no public projection.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSdkException(String message, String code) SdkException(String message, String code, String solution, boolean allowRetry, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionFix guidance from the SDK error catalog; nullable.booleantoString()Methods inherited from class com.alibaba.dashscope.errors.DashScopeException
getBody, getCode, getHeaders, getRequestId, getStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SdkException
-
SdkException
-
-
Method Details
-
getSolution
Fix guidance from the SDK error catalog; nullable. -
isAllowRetry
public boolean isAllowRetry() -
toString
- Overrides:
toStringin classDashScopeException
-