com.arsdigita.bebop.jsp
Class JspWrapperException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.arsdigita.bebop.jsp.JspWrapperException
All Implemented Interfaces:
Serializable

public class JspWrapperException
extends RuntimeException

A wrapper exception that can be used to rethrow another exception. The standard JspException doesn't accept a root cause, hence this subclass.

Version:
$Id: //core-platform/dev/src/com/arsdigita/bebop/jsp/JspWrapperException.java#5 $
Author:
David Eison
See Also:
Serialized Form

Field Summary
static String versionId
           
 
Constructor Summary
JspWrapperException(String s, Throwable rootCause)
          Constructor which takes a message string and a root cause that this exception will be wrapping.
JspWrapperException(Throwable rootCause)
          Constructor which takes a root cause that this exception will be wrapping.
 
Method Summary
 String getMessage()
          This exception's message and the root cause's.
 Throwable getRootCause()
          Gets the root cause of this exception.
 void printStackTrace()
          Stack trace for the root cause.
 void printStackTrace(PrintStream s)
          Stack trace for the root cause.
 void printStackTrace(PrintWriter s)
          Stack trace for the root cause.
 String toString()
          Get a string representing this exception and the root cause.
 String toString(Class delegatingClass)
          Get a string representing this exception and the root cause.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

JspWrapperException

public JspWrapperException(Throwable rootCause)
Constructor which takes a root cause that this exception will be wrapping.


JspWrapperException

public JspWrapperException(String s,
                           Throwable rootCause)
Constructor which takes a message string and a root cause that this exception will be wrapping. The message string should be something different than rootCause.getMessage() would normally provide.

Method Detail

getRootCause

public Throwable getRootCause()
Gets the root cause of this exception.


toString

public String toString()
Get a string representing this exception and the root cause.


toString

public String toString(Class delegatingClass)
Get a string representing this exception and the root cause. Functions like normal toString, except that the name of the provided class will be used instead of the name of the unchecked wrapper exception. Useful when another exception class is using an unchecked wrapper exception to delegate to.


getMessage

public String getMessage()
This exception's message and the root cause's.


printStackTrace

public void printStackTrace()
Stack trace for the root cause.


printStackTrace

public void printStackTrace(PrintStream s)
Stack trace for the root cause.


printStackTrace

public void printStackTrace(PrintWriter s)
Stack trace for the root cause.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC