Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.server.webapp.pages
Interface ExceptionInfo<T extends Exception>

Type Parameters:
T - the exception type for which this info applies
All Superinterfaces:
Serializable

public interface ExceptionInfo<T extends Exception>
extends Serializable

Represents information on how to handle a specific exception type.

Author:
Simon Templer

Method Summary
 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.
 

Method Detail

getExceptionType

Class<T> getExceptionType()
Get the exception type for which this info applies.

Returns:
the exception type

getErrorTitle

String getErrorTitle(T exception)
Get the error title to display.

Parameters:
exception - the exception representing the error
Returns:
the error title, may not be null

getErrorMessage

String getErrorMessage(T exception)
Get the error message to display.

Parameters:
exception - the exception representing the error
Returns:
the error message, may not be null

getHttpErrorCode

int getHttpErrorCode(T exception)
Get the HTTP status code for this error, e.g. HttpServletResponse.SC_INTERNAL_SERVER_ERROR.

Parameters:
exception - the exception representing the error
Returns:
the HTTP status code

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d