com.ibatis.common.exception
Class NestedRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.ibatis.common.exception.NestedRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BeansException, SqlMapException

public class NestedRuntimeException
extends java.lang.RuntimeException

Nexted exception implementation. Thanks Claus.

See Also:
Serialized Form

Field Summary
private  java.lang.Throwable cause
           
 
Constructor Summary
NestedRuntimeException()
          Constructor
NestedRuntimeException(java.lang.String msg)
          Constructor
NestedRuntimeException(java.lang.String msg, java.lang.Throwable cause)
          Constructor
NestedRuntimeException(java.lang.Throwable cause)
          Constructor
 
Method Summary
 java.lang.Throwable getCause()
          Gets the causing exception, if any.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter pw)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause

private java.lang.Throwable cause
Constructor Detail

NestedRuntimeException

public NestedRuntimeException()
Constructor


NestedRuntimeException

public NestedRuntimeException(java.lang.String msg)
Constructor

Parameters:
msg - error message

NestedRuntimeException

public NestedRuntimeException(java.lang.Throwable cause)
Constructor

Parameters:
cause - the nested exception (caused by)

NestedRuntimeException

public NestedRuntimeException(java.lang.String msg,
                              java.lang.Throwable cause)
Constructor

Parameters:
msg - error message
cause - the nested exception (caused by)
Method Detail

getCause

public java.lang.Throwable getCause()
Gets the causing exception, if any.

Overrides:
getCause in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Overrides:
printStackTrace in class java.lang.Throwable