|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.ibm.workflow.portlet.client.ClientException
This is the base class for all exceptions thrown within the Web Client framework. It contains the servlet request during which the error occured and also can hold the nested exception, if any.
Constructor Summary | |
---|---|
ClientException(javax.servlet.http.HttpServletRequest request,
java.lang.String message)
Constructs an exception object. |
|
ClientException(javax.servlet.http.HttpServletRequest request,
java.lang.Throwable xcpt)
Constructs an exception object. |
|
ClientException(javax.servlet.http.HttpServletRequest request,
java.lang.Throwable xcpt,
java.lang.String message)
Constructs an exception object. |
|
ClientException(RequestContext context,
java.lang.String message)
Constructs an exception object. |
|
ClientException(RequestContext context,
java.lang.Throwable xcpt)
Constructs an exception object. |
|
ClientException(RequestContext context,
java.lang.Throwable xcpt,
java.lang.String message)
Constructs an exception object. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Returns the error message string of this exception. |
java.lang.Throwable |
getNestedException()
Returns the nested exception, if any. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the HTTP request that caused this exception. |
static java.lang.String |
getStack(java.lang.Throwable xcpt)
Returns the stack trace of an exception as string. |
java.lang.String |
getTitle()
Returns the error title string of this exception. |
void |
printStackTrace(java.io.PrintStream s)
Prints this exception to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this exception to the specified print writer. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClientException(javax.servlet.http.HttpServletRequest request, java.lang.String message)
request
- the HTTP requestmessage
- the error messagepublic ClientException(javax.servlet.http.HttpServletRequest request, java.lang.Throwable xcpt)
request
- the HTTP requestxcpt
- the exception that was thrownpublic ClientException(javax.servlet.http.HttpServletRequest request, java.lang.Throwable xcpt, java.lang.String message)
request
- the HTTP requestxcpt
- the exception that was thrownmessage
- the error messagepublic ClientException(RequestContext context, java.lang.String message)
context
- the request contextmessage
- the error messagepublic ClientException(RequestContext context, java.lang.Throwable xcpt)
context
- the request contextxcpt
- the exception that was thrownpublic ClientException(RequestContext context, java.lang.Throwable xcpt, java.lang.String message)
context
- the request contextxcpt
- the exception that was thrownmessage
- the error messageMethod Detail |
public static java.lang.String getStack(java.lang.Throwable xcpt)
xcpt
- the exception from which to extract the stack tracepublic java.lang.String getTitle()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public javax.servlet.http.HttpServletRequest getRequest()
public java.lang.Throwable getNestedException()
null
)public void printStackTrace(java.io.PrintStream s)
printStackTrace(PrintWriter)
.printStackTrace
in class java.lang.Throwable
s
- the print stream to write topublic void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
s
- the print writer to write to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |