public abstract static class ErrorResponse.ErrorResponseException extends RuntimeException implements ErrorResponse
RuntimeException
with ErrorResponse
support.ErrorResponse.ErrorResponseException
ERROR_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, toString
public 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()
ErrorResponse
getErrorCode
in interface ErrorResponse
public String getErrorDescription()
ErrorResponse
getErrorDescription
in interface ErrorResponse
public String getErrorURI()
ErrorResponse
getErrorURI
in interface ErrorResponse
public int getHttpStatus()
ErrorResponse
getHttpStatus
in interface ErrorResponse
-1
means unknownCopyright © 2018 The Holon Platform. All rights reserved.