-
- All Implemented Interfaces:
-
java.io.Serializable
public final class AuthenticationException extends Auth0Exception
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AuthenticationException(String code, String description)
AuthenticationException(String message, Exception cause)
AuthenticationException(String code, String description, Exception cause)
AuthenticationException(String payload, Integer statusCode)
AuthenticationException(Map<String, Object> values, Integer statusCode)
-
Method Summary
-
Methods inherited from class kotlin.Throwable
equals, hashCode, toString
-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCode
final String getCode()
Auth0 error code if the server returned one or an internal library code (e.g.: when the server could not be reached)
-
getDescription
final String getDescription()
Description of the error. important: You should avoid displaying description to the user, it's meant for debugging only.
-
getValue
final Object getValue(String key)
Returns a value from the error map, if any.
- Parameters:
key
- key of the value to return
-
getStatusCode
final Integer getStatusCode()
Http Response status code. Can have value of 0 if not set.
-
getIsNetworkError
final Boolean getIsNetworkError()
-
getIsBrowserAppNotAvailable
final Boolean getIsBrowserAppNotAvailable()
-
getIsPKCENotAvailable
final Boolean getIsPKCENotAvailable()
-
getIsInvalidAuthorizeURL
final Boolean getIsInvalidAuthorizeURL()
-
getIsInvalidConfiguration
final Boolean getIsInvalidConfiguration()
-
getIsAuthenticationCanceled
final Boolean getIsAuthenticationCanceled()
-
getIsCanceled
final Boolean getIsCanceled()
-
getIsMultifactorRequired
final Boolean getIsMultifactorRequired()
-
getIsMultifactorEnrollRequired
final Boolean getIsMultifactorEnrollRequired()
-
getIsVerificationRequired
final Boolean getIsVerificationRequired()
-
getIsMultifactorTokenInvalid
final Boolean getIsMultifactorTokenInvalid()
-
getIsMultifactorCodeInvalid
final Boolean getIsMultifactorCodeInvalid()
-
getIsPasswordNotStrongEnough
final Boolean getIsPasswordNotStrongEnough()
-
getIsPasswordAlreadyUsed
final Boolean getIsPasswordAlreadyUsed()
-
getIsPasswordLeaked
final Boolean getIsPasswordLeaked()
-
getIsRuleError
final Boolean getIsRuleError()
-
getIsInvalidCredentials
final Boolean getIsInvalidCredentials()
-
getIsAccessDenied
final Boolean getIsAccessDenied()
-
getIsLoginRequired
final Boolean getIsLoginRequired()
-
getIsRefreshTokenDeleted
final Boolean getIsRefreshTokenDeleted()
-
getIsInvalidRefreshToken
final Boolean getIsInvalidRefreshToken()
-
getIsIdTokenValidationError
final Boolean getIsIdTokenValidationError()
-
getIsTooManyAttempts
final Boolean getIsTooManyAttempts()
-
getMessage
String getMessage()
-
setStatusCode
final Unit setStatusCode(Integer statusCode)
-
-
-
-