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
public class AuthenticationException extends Exception implements com.okta.sdk.error.Error
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 returned4xxstatus, related error messages are contained within this exception.- Since:
- 0.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationException(com.okta.sdk.error.Error error)AuthenticationException(com.okta.sdk.resource.ResourceException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.okta.sdk.error.ErrorCause>getCauses()StringgetCode()Get the Okta Error Code, click here for the list of Okta error codes.Map<String,List<String>>getHeaders()StringgetId()intgetStatus()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getStatus
public int getStatus()
- Specified by:
getStatusin interfacecom.okta.sdk.error.Error
-
getCode
public String getCode()
Get the Okta Error Code, click here for the list of Okta error codes.- Specified by:
getCodein interfacecom.okta.sdk.error.Error- Returns:
- the code of the error
-
getId
public String getId()
- Specified by:
getIdin interfacecom.okta.sdk.error.Error
-
getCauses
public List<com.okta.sdk.error.ErrorCause> getCauses()
- Specified by:
getCausesin interfacecom.okta.sdk.error.Error
-
-