public abstract static class ErrorResponse.ErrorResponseException extends RuntimeException implements ErrorResponse
RuntimeException with ErrorResponse support.ErrorResponse.ErrorResponseExceptionERROR_CODE_SERIALIZATION_NAME, ERROR_DESCRIPTION_SERIALIZATION_NAME, ERROR_URI_SERIALIZATION_NAME, INVALID_CLIENT, INVALID_REQUEST, INVALID_TOKEN, SERVER_ERROR, TEMPORARY_UNAVAILABLE| Constructor and Description |
|---|
ErrorResponseException(String errorCode,
String errorDescription)
Constructor
|
ErrorResponseException(String errorCode,
String errorDescription,
int httpStatus)
Constructor
|
ErrorResponseException(String errorCode,
String errorDescription,
String errorURI)
Constructor
|
ErrorResponseException(String errorCode,
String errorDescription,
String errorURI,
int httpStatus)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
Error code.
|
String |
getErrorDescription()
Error description, i.e. a human-readable explanation of this error
|
String |
getErrorURI()
Optional error URI that leads to further details about this error
|
int |
getHttpStatus()
Optional HTTP status code to represent error as a HTTP response
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ErrorResponseException(String errorCode, String errorDescription)
errorCode - Error codeerrorDescription - Error description, i.e. a human-readable explanation of this errorpublic ErrorResponseException(String errorCode, String errorDescription, int httpStatus)
errorCode - Error codeerrorDescription - Error description, i.e. a human-readable explanation of this errorhttpStatus - HTTP status code to represent error as a HTTP responsepublic ErrorResponseException(String errorCode, String errorDescription, String errorURI)
errorCode - Error codeerrorDescription - Error description, i.e. a human-readable explanation of this errorerrorURI - Error URI that leads to further details about this errorpublic ErrorResponseException(String errorCode, String errorDescription, String errorURI, int httpStatus)
errorCode - Error codeerrorDescription - Error description, i.e. a human-readable explanation of this errorerrorURI - Error URI that leads to further details about this errorhttpStatus - HTTP status code to represent error as a HTTP responsepublic String getErrorCode()
ErrorResponsegetErrorCode in interface ErrorResponsepublic String getErrorDescription()
ErrorResponsegetErrorDescription in interface ErrorResponsepublic String getErrorURI()
ErrorResponsegetErrorURI in interface ErrorResponsepublic int getHttpStatus()
ErrorResponsegetHttpStatus in interface ErrorResponse-1 means unknownCopyright © 2019 The Holon Platform. All rights reserved.