T
- the exception type for which this info appliespublic interface ExceptionInfo<T extends Exception> extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage(T exception)
Get the error message to display.
|
String |
getErrorTitle(T exception)
Get the error title to display.
|
Class<T> |
getExceptionType()
Get the exception type for which this info applies.
|
int |
getHttpErrorCode(T exception)
Get the HTTP status code for this error, e.g.
|
Class<T> getExceptionType()
String getErrorTitle(T exception)
exception
- the exception representing the errornull
String getErrorMessage(T exception)
exception
- the exception representing the errornull
int getHttpErrorCode(T exception)
HttpServletResponse.SC_INTERNAL_SERVER_ERROR
.exception
- the exception representing the errorBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a