|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.portlet.invocation.response.PortletInvocationResponse
org.jboss.portal.portlet.invocation.response.ErrorResponse
Application level error.
Field Summary | |
private java.lang.String |
message
There must be one error message. |
private java.lang.Throwable |
throwable
The logged throwable if any. |
Constructor Summary | |
ErrorResponse(java.lang.String message)
|
|
ErrorResponse(java.lang.Throwable throwable)
|
Method Summary | |
java.lang.String |
getMessage()
The logged message. |
java.lang.Throwable |
getThrowable()
The throwable. |
void |
logErrorTo(org.jboss.logging.Logger log,
java.lang.String logMessage)
Logs an error message to the specified logger, using either the message or this ErrorResult's Throwable if available. |
java.lang.String |
toHTML()
Provides an HTML description of the error, using either the message or the encapsulated Throwable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final java.lang.Throwable throwable
private final java.lang.String message
Constructor Detail |
public ErrorResponse(java.lang.Throwable throwable)
public ErrorResponse(java.lang.String message)
Method Detail |
public java.lang.Throwable getThrowable()
public java.lang.String getMessage()
public void logErrorTo(org.jboss.logging.Logger log, java.lang.String logMessage)
log
- logMessage
- public java.lang.String toHTML()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |