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,java.io.Serializable
- Direct Known Subclasses:
 AuthenticationFailureException,CredentialsException,FactorValidationException,InvalidAuthenticationStateException,InvalidRecoveryAnswerException,InvalidTokenException,InvalidUserException,UserLockedException
public class AuthenticationException extends java.lang.Exception implements com.okta.sdk.error.ErrorBase 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 java.util.List<com.okta.sdk.error.ErrorCause>getCauses()java.lang.StringgetCode()Get the Okta Error Code, click here for the list of Okta error codes.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getHeaders()java.lang.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 java.lang.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 java.lang.String getId()
- Specified by:
 getIdin interfacecom.okta.sdk.error.Error
 
- 
getCauses
public java.util.List<com.okta.sdk.error.ErrorCause> getCauses()
- Specified by:
 getCausesin interfacecom.okta.sdk.error.Error
 
- 
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
- Specified by:
 getHeadersin interfacecom.okta.sdk.error.Error
 
 - 
 
 -