public class ErrorResponse extends PortletInvocationResponse
| Constructor and Description |
|---|
ErrorResponse(String message) |
ErrorResponse(String message,
Throwable cause) |
ErrorResponse(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
The throwable.
|
String |
getMessage()
The logged message.
|
void |
logErrorTo(org.gatein.common.logging.Logger log,
String logMessage)
Logs an error message to the specified logger, using either the message or this ErrorResult's Throwable if
available.
|
String |
toHTML()
Provides an HTML description of the error, using either the message or the encapsulated Throwable.
|
public ErrorResponse(String message)
public ErrorResponse(Throwable cause)
public Throwable getCause()
public String getMessage()
public void logErrorTo(org.gatein.common.logging.Logger log,
String logMessage)
log - the loggerlogMessage - the additional message to logpublic String toHTML()
Copyright © 2003-2016 GateIn. All Rights Reserved.