net.sf.xframe.ex
Class CascadingException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.sf.xframe.ex.CascadingException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
XFrameException

public class CascadingException
extends java.lang.Exception

Class from which all xframe exceptions should inherit. Allows recording of nested exceptions.

Author:
Kurt Riede
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
CascadingException(java.lang.String message)
          Construct a new CascadingException instance.
CascadingException(java.lang.String message, java.lang.Throwable throwable)
          Construct a new CascadingException instance.
CascadingException(java.lang.Throwable throwable)
          Construct a new CascadingException instance.
 
Method Summary
 java.lang.Throwable getCause()
          Retrieve root cause of the exception.
 void printStackTrace()
          Prints this Throwable and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this Throwable and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter w)
          Prints this Throwable and its backtrace to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CascadingException

public CascadingException(java.lang.String message)
Construct a new CascadingException instance.

Parameters:
message - The detail message for this exception.

CascadingException

public CascadingException(java.lang.String message,
                          java.lang.Throwable throwable)
Construct a new CascadingException instance.

Parameters:
message - The detail message for this exception.
throwable - the root cause of the exception

CascadingException

public CascadingException(java.lang.Throwable throwable)
Construct a new CascadingException instance.

Parameters:
throwable - the root cause of the exception
Method Detail

getCause

public final java.lang.Throwable getCause()
Retrieve root cause of the exception.

Returns:
the root cause

printStackTrace

public final void printStackTrace()
Prints this Throwable and its backtrace to the standard error stream.

See Also:
Throwable.printStackTrace()

printStackTrace

public final void printStackTrace(java.io.PrintStream s)
Prints this Throwable and its backtrace to the specified print stream.

Parameters:
s - PrintStream to use for output
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public final void printStackTrace(java.io.PrintWriter w)
Prints this Throwable and its backtrace to the specified print writer.

Parameters:
w - PrintWriter to use for output
See Also:
Throwable.printStackTrace(java.io.PrintWriter)


Copyright © 2004-2005 xframe. All Rights Reserved.