Package com.qtsurfer.api.sdk.errors
Class QTSError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.qtsurfer.api.sdk.errors.QTSError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
QTSAuthError,QTSCanceledError,QTSDownloadError,QTSExecutionError,QTSPreparationError,QTSStrategyCompileError,QTSTimeoutError,QTSUploadError
Root of the QTSurfer SDK exception hierarchy. All SDK errors are unchecked;
consumers can catch
QTSError to handle any SDK-specific failure, or
match on subclasses to react to a specific stage.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QTSError
-
QTSError
-
-
Method Details
-
getStatusCode
- Returns:
- the HTTP status when this error originated in an API response
-
getResponseError
- Returns:
- the structured server error when the response body has that shape
-
getReason
- Returns:
- a stable cause token; handle unknown tokens like an absent reason
-
getNext
- Returns:
- a suggested recovery request; the SDK never executes it automatically
-
getResponseHeaders
- Returns:
- response headers, including
Retry-After, when available
-