org.apache.jackrabbit.j2ee
Class ServletExceptionWithCause

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.servlet.ServletException
              extended by org.apache.jackrabbit.j2ee.ServletExceptionWithCause
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JcrApiNotFoundException

public class ServletExceptionWithCause
extends javax.servlet.ServletException

Utility class that links ServletException with support for the exception chaining mechanism in Throwable.

See Also:
https://issues.apache.org/jira/browse/JCR-1598, Serialized Form

Constructor Summary
ServletExceptionWithCause(String message, Throwable cause)
          Creates a servlet exception with the given message and cause.
 
Method Summary
 
Methods inherited from class javax.servlet.ServletException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletExceptionWithCause

public ServletExceptionWithCause(String message,
                                 Throwable cause)
Creates a servlet exception with the given message and cause.

Parameters:
message - exception message
cause - cause of the exception


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.