Package com.okta.sdk.error
Class NonJsonError
java.lang.Object
com.okta.sdk.error.NonJsonError
- All Implemented Interfaces:
Error
-
Constructor Summary
ConstructorsConstructorDescriptionNonJsonError
(int status, String message) NonJsonError
(String message) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of causes of this error.getCode()
Returns the Okta specific error code.Returns the HTTP headers associated with this error response.getId()
Returns the error ID of this error.Returns the detail message string of this error.int
Returns this error's HTTP status code.
-
Constructor Details
-
NonJsonError
Deprecated. -
NonJsonError
-
-
Method Details
-
getStatus
public int getStatus()Description copied from interface:Error
Returns this error's HTTP status code. -
getCode
Description copied from interface:Error
Returns the Okta specific error code. -
getMessage
Description copied from interface:Error
Returns the detail message string of this error.- Specified by:
getMessage
in interfaceError
- Returns:
- message string of this error.
-
getId
Description copied from interface:Error
Returns the error ID of this error. This maybe used when opening a support case and troubleshooting. -
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. -
getHeaders
Description copied from interface:Error
Returns the HTTP headers associated with this error response.- Specified by:
getHeaders
in interfaceError
- Returns:
- A list headers, which could be {code}null{code} or empty
-