Package com.qtsurfer.api.sdk.errors
Class QTSAuthError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.qtsurfer.api.sdk.errors.QTSError
com.qtsurfer.api.sdk.errors.QTSAuthError
- All Implemented Interfaces:
Serializable
Thrown when the
authenticate() helper cannot mint a JWT — typically because
no API key was supplied (neither argument nor QTSURFER_APIKEY
environment variable), or the API key exchange returned 401 / a non-success
status from POST /v1/auth/token.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.qtsurfer.api.sdk.errors.QTSError
getInsufficientScopeError, getMessage, getNext, getPlanRequiredError, getReason, getRequiredScope, getResponseError, getResponseHeaders, getRetryable, getStatusCode, getUpgradeUrlMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QTSAuthError
-
QTSAuthError
-
-
Method Details
-
getAuthTokenError
- Returns:
- the typed
401/403token-exchange error, when supplied by the API
-