Class AuthenticationException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<com.okta.sdk.error.ErrorCause> getCauses()  
      java.lang.String getCode()
      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.String getId()  
      int getStatus()  
      • 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 Detail

      • AuthenticationException

        public AuthenticationException​(com.okta.sdk.error.Error error)
      • AuthenticationException

        public AuthenticationException​(com.okta.sdk.resource.ResourceException e)
    • Method Detail

      • getStatus

        public int getStatus()
        Specified by:
        getStatus in interface com.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:
        getCode in interface com.okta.sdk.error.Error
        Returns:
        the code of the error
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface com.okta.sdk.error.Error
      • getCauses

        public java.util.List<com.okta.sdk.error.ErrorCause> getCauses()
        Specified by:
        getCauses in interface com.okta.sdk.error.Error
      • getHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
        Specified by:
        getHeaders in interface com.okta.sdk.error.Error