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 Details

    • ErrorResponse

      public ErrorResponse(String message)
    • ErrorResponse

      public ErrorResponse(Throwable cause)
    • ErrorResponse

      public ErrorResponse(String message, Throwable cause)
  • Method Details

    • 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 logger
      logMessage - 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