Class ErrorResponse
java.lang.Object
org.gatein.pc.api.invocation.response.PortletInvocationResponse
org.gatein.pc.api.invocation.response.ErrorResponse
Application level error.
- Version:
- $Revision: 7395 $
- Author:
- Julien Viet
-
Constructor Summary
ConstructorsConstructorDescriptionErrorResponse(String message) ErrorResponse(String message, Throwable cause) ErrorResponse(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()The throwable.The logged message.voidlogErrorTo(org.exoplatform.services.log.Log log, String logMessage) Logs an error message to the specified logger, using either the message or this ErrorResult's Throwable if available.toHTML()Provides an HTML description of the error, using either the message or the encapsulated Throwable.
-
Constructor Details
-
ErrorResponse
-
ErrorResponse
-
ErrorResponse
-
-
Method Details
-
getCause
The throwable. Can be a null object. -
getMessage
The logged message. -
logErrorTo
Logs an error message to the specified logger, using either the message or this ErrorResult's Throwable if available.- Parameters:
log- the loggerlogMessage- the additional message to log
-
toHTML
Provides an HTML description of the error, using either the message or the encapsulated Throwable.- Returns:
- an html formatted string
-