Package com.okta.authn.sdk
Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.okta.authn.sdk.AuthenticationException
- All Implemented Interfaces:
com.okta.sdk.error.Error
,Serializable
- Direct Known Subclasses:
AuthenticationFailureException
,CredentialsException
,FactorValidationException
,InvalidAuthenticationStateException
,InvalidRecoveryAnswerException
,InvalidTokenException
,InvalidUserException
,UserLockedException
Base Authentication Exception. You can catch this exception or handle a more specific child exception. This exception
was thrown as a result of an error which returned
4xx
status, related error messages are
contained within this exception.- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionAuthenticationException
(com.okta.sdk.error.Error error) AuthenticationException
(com.okta.sdk.resource.ResourceException e) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.okta.sdk.error.Error
getMessage
-
Constructor Details
-
AuthenticationException
public AuthenticationException(com.okta.sdk.error.Error error) -
AuthenticationException
public AuthenticationException(com.okta.sdk.resource.ResourceException e)
-
-
Method Details
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfacecom.okta.sdk.error.Error
-
getCode
Get the Okta Error Code, click here for the list of Okta error codes.- Specified by:
getCode
in interfacecom.okta.sdk.error.Error
- Returns:
- the code of the error
-
getId
- Specified by:
getId
in interfacecom.okta.sdk.error.Error
-
getCauses
- Specified by:
getCauses
in interfacecom.okta.sdk.error.Error
-
getHeaders
-