Class NonJsonError

java.lang.Object
com.okta.sdk.error.NonJsonError
All Implemented Interfaces:
Error

public class NonJsonError extends Object implements Error
  • Constructor Details

    • NonJsonError

      @Deprecated public NonJsonError(String message)
      Deprecated.
    • NonJsonError

      public NonJsonError(int status, String message)
  • Method Details

    • getStatus

      public int getStatus()
      Description copied from interface: Error
      Returns this error's HTTP status code.
      Specified by:
      getStatus in interface Error
      Returns:
      the status code of this Error
    • getCode

      public String getCode()
      Description copied from interface: Error
      Returns the Okta specific error code.
      Specified by:
      getCode in interface Error
      Returns:
      an Okta specific error code
    • getMessage

      public String getMessage()
      Description copied from interface: Error
      Returns the detail message string of this error.
      Specified by:
      getMessage in interface Error
      Returns:
      message string of this error.
    • getId

      public String getId()
      Description copied from interface: Error
      Returns the error ID of this error. This maybe used when opening a support case and troubleshooting.
      Specified by:
      getId in interface Error
      Returns:
      error ID of this error
    • getCauses

      public List<ErrorCause> getCauses()
      Description copied from interface: Error
      Returns the list of causes of this error. When validating a resource (for example a User) multiple validation errors could occur.
      Specified by:
      getCauses in interface Error
      Returns:
      A list of causes, which could be {code}null{code} or empty
    • getHeaders

      public Map<String,List<String>> getHeaders()
      Description copied from interface: Error
      Returns the HTTP headers associated with this error response.
      Specified by:
      getHeaders in interface Error
      Returns:
      A list headers, which could be {code}null{code} or empty