header

net.sf.xframe.ex
Class CascadingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.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

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.

Overrides:
getCause in class java.lang.Throwable
Returns:
the root cause

printStackTrace

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

Overrides:
printStackTrace in class java.lang.Throwable
See Also:
Throwable.printStackTrace()

printStackTrace

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

Overrides:
printStackTrace in class java.lang.Throwable
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.

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

header

Submit a bug or a feature.
Created by xsddoc, a sub project of xframe, hosted at http://www.sourceforge.net.