Class QTSAuthError

All Implemented Interfaces:
Serializable

public class QTSAuthError extends QTSError
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 Details

    • QTSAuthError

      public QTSAuthError(String message)
    • QTSAuthError

      public QTSAuthError(String message, Throwable cause)
  • Method Details

    • getAuthTokenError

      public Optional<com.qtsurfer.api.client.model.AuthTokenError> getAuthTokenError()
      Returns:
      the typed 401/403 token-exchange error, when supplied by the API