Snapper 1.1 API

org.enhydra.snapper.api
Class RootException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.enhydra.snapper.api.RootException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TransactionException

public class RootException
extends java.lang.Exception

This exception is base for all exceptions defined in Shark. It allows implementation of chain exceptions, and this implementation takes care if JDK1.3 or JDK1.4 is used.

Author:
Vladimir Puskas
See Also:
Serialized Form

Constructor Summary
RootException()
          Constructs a new exception with null as its detail message.
RootException(java.lang.String message)
          Constructs a new exception with the specified detail message.
RootException(java.lang.String message, java.lang.Throwable t)
          Constructs a new exception with the specified detail message and cause.
RootException(java.lang.Throwable t)
          Constructs a new exception with the specified cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this exception.
 java.lang.Throwable initCause(java.lang.Throwable t)
          Initializes the cause of this exception to the specified value.
 void printStackTrace()
          Method printStackTrace prints the stack trace to the standard error stream.
 void printStackTrace(java.io.PrintStream ps)
          Method printStackTrace prints the stack trace to the ps PrintStream.
 void printStackTrace(java.io.PrintWriter pw)
          Method printStackTrace prints the stack trace to the pw PrintWriter.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RootException

public RootException()
Constructs a new exception with null as its detail message.


RootException

public RootException(java.lang.String message)
Constructs a new exception with the specified detail message.

Parameters:
message - the detail message.

RootException

public RootException(java.lang.Throwable t)
Constructs a new exception with the specified cause.

Parameters:
t - the cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.

RootException

public RootException(java.lang.String message,
                     java.lang.Throwable t)
Constructs a new exception with the specified detail message and cause.

Parameters:
message - the detail message.
t - the cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
Method Detail

initCause

public java.lang.Throwable initCause(java.lang.Throwable t)
                              throws java.lang.IllegalArgumentException,
                                     java.lang.IllegalStateException
Initializes the cause of this exception to the specified value.

Overrides:
initCause in class java.lang.Throwable
Parameters:
t - the cause.
Returns:
a reference to this instance.
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException

getCause

public java.lang.Throwable getCause()
Returns the cause of this exception.

Overrides:
getCause in class java.lang.Throwable
Returns:
a cause for this exception if any, null otherwise

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Method printStackTrace prints the stack trace to the ps PrintStream.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
ps - PrintStream used for the output.

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Method printStackTrace prints the stack trace to the pw PrintWriter.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
pw - PrintWriter used for the output.

printStackTrace

public void printStackTrace()
Method printStackTrace prints the stack trace to the standard error stream.

Overrides:
printStackTrace in class java.lang.Throwable

Snapper 1.1 API