java.lang.Object | +--com.ibm.commerce.exception.ExceptionHandler
This class contains methods helper methods for converting Exceptions to ECExceptions and generating ECExceptions. This class is for internal use only.
Constructor Summary | |
---|---|
ExceptionHandler() Constructor for ExceptionHandler. |
Method Summary | |
---|---|
static
ECException |
convertToECException(java.lang.Exception e) Converts from an Exception to an ECException object. |
static void |
displayJspException(HttpServletRequest request,
HttpServletResponse response, java.lang.Exception e) Forwards the exception to a GenericSystemError view task to display the associated generic system error JSP. |
static
TypedProperty |
getExceptionProperties(java.lang.Exception e) Gets the exception property |
static CommandException |
getRootCommandException(CommandException e) Gets the root exception from the CommandException. |
static
ErrorDataBean |
handleJspException(HttpServletRequest request,
HttpServletResponse response, java.lang.Exception e) Handles the JSP exception and gets an error databean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionHandler()
Method Detail |
---|
public static ECException convertToECException(java.lang.Exception e)
e
- an exception to be anaylzedpublic static void displayJspException(HttpServletRequest request, HttpServletResponse response, java.lang.Exception e) throws ServletException
request
- HttpServletRequestresponse
- HttpServletResponsee
- java.lang.ExceptionServletException
public static TypedProperty getExceptionProperties(java.lang.Exception e)
e
- Exceptionpublic static CommandException getRootCommandException(CommandException e)
e
- an exception to be anaylzedpublic static ErrorDataBean handleJspException(HttpServletRequest request, HttpServletResponse response, java.lang.Exception e)
request
- HttpServletRequestresponse
- HttpServletResponsee
- java.lang.Exception