Class ErrorResponse
- java.lang.Object
-
- org.gatein.pc.api.invocation.response.PortletInvocationResponse
-
- org.gatein.pc.api.invocation.response.ErrorResponse
-
public class ErrorResponse extends PortletInvocationResponse
Application level error.- Version:
- $Revision: 7395 $
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse(String message)ErrorResponse(String message, Throwable cause)ErrorResponse(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()The throwable.StringgetMessage()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.StringtoHTML()Provides an HTML description of the error, using either the message or the encapsulated Throwable.
-
-
-
Method Detail
-
getCause
public Throwable getCause()
The throwable. Can be a null object.
-
getMessage
public String getMessage()
The logged message.
-
logErrorTo
public void logErrorTo(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.- Parameters:
log- the loggerlogMessage- the additional message to log
-
toHTML
public String toHTML()
Provides an HTML description of the error, using either the message or the encapsulated Throwable.- Returns:
- an html formatted string
-
-