Interface Error

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<ErrorCause> getCauses()
      Returns the list of causes of this error.
      java.lang.String getCode()
      Returns the Okta specific error code.
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
      Returns the HTTP headers associated with this error response.
      java.lang.String getId()
      Returns the error ID of this error.
      java.lang.String getMessage()
      Returns the detail message string of this error.
      int getStatus()
      Returns this error's HTTP status code.
    • Method Detail

      • getStatus

        int getStatus()
        Returns this error's HTTP status code.
        Returns:
        the status code of this Error
      • getCode

        java.lang.String getCode()
        Returns the Okta specific error code.
        Returns:
        an Okta specific error code
      • getMessage

        java.lang.String getMessage()
        Returns the detail message string of this error.
        Returns:
        message string of this error.
      • getId

        java.lang.String getId()
        Returns the error ID of this error. This maybe used when opening a support case and troubleshooting.
        Returns:
        error ID of this error
      • getCauses

        java.util.List<ErrorCause> getCauses()
        Returns the list of causes of this error. When validating a resource (for example a User) multiple validation errors could occur.
        Returns:
        A list of causes, which could be {code}null{code} or empty
      • getHeaders

        java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
        Returns the HTTP headers associated with this error response.
        Returns:
        A list headers, which could be {code}null{code} or empty