public class ExceptionHandler
extends java.lang.Object
Exception
objects to ECException
objects
and generating ECException
objects. This class is for internal use only.Constructor and Description |
---|
ExceptionHandler()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertStackTraceToString(java.lang.Throwable throwable)
This method converts the stack trace of the
Throwable object to a String for tracing
purposes. |
static ECException |
convertToECException(java.lang.Throwable e)
This method converts an
Exception object to an ECException object. |
static void |
displayJspException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception e)
This method forwards the exception to a
GenericSystemError view task to display
the associated generic system error JSP. |
static TypedProperty |
getExceptionProperties(java.lang.Exception e)
This method gets exception properties.
|
static TypedProperty |
getExceptionProperties(java.lang.Throwable e)
This method gets the exception properties.
|
static com.ibm.websphere.command.CommandException |
getRootCommandException(com.ibm.websphere.command.CommandException e)
This method gets the root exception from the
CommandException . |
static ErrorDataBean |
handleJspException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception e)
This method handles the JSP exception and gets an error data bean.
|
public ExceptionHandler()
public static ECException convertToECException(java.lang.Throwable e)
Exception
object to an ECException
object.e
- An Exception
object to be converted.ECException
object.public static void displayJspException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception e) throws javax.servlet.ServletException
GenericSystemError
view task to display
the associated generic system error JSP. It is called by a JSP when it detects an exception.request
- An HttpServletRequest
object.response
- An HttpServletResponse
object.e
- A java.lang.Exception
object.javax.servlet.ServletException
public static TypedProperty getExceptionProperties(java.lang.Throwable e)
e
- A Throwable
object.public static TypedProperty getExceptionProperties(java.lang.Exception e)
e
- An Exception
object.public static com.ibm.websphere.command.CommandException getRootCommandException(com.ibm.websphere.command.CommandException e)
CommandException
.
The root exception can be the CommandException
itself or an ECException
.e
- An exception to be analyzed.public static ErrorDataBean handleJspException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception e)
request
- An HttpServletRequest
object.response
- An HttpServletResponse
object.e
- A java.lang.Exception
object.error
- A data bean.public static java.lang.String convertStackTraceToString(java.lang.Throwable throwable)
Throwable
object to a String
for tracing
purposes.throwable
- The Throwable
object.String
representation of the stack trace.