Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.common.exception
Class NestedRuntimeException  view NestedRuntimeException download NestedRuntimeException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.ibatis.common.exception.NestedRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class NestedRuntimeException
extends java.lang.RuntimeException

Nexted exception implementation. Thanks Claus.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.Throwable cause
           
private static java.lang.String CAUSED_BY
           
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
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()
          Sends a stack trace to System.err (including the root cause, if any)
 void printStackTrace(java.io.PrintStream ps)
          Sends a stack trace to the PrintStream passed in (including the root cause, if any)
 void printStackTrace(java.io.PrintWriter pw)
          Sends a stack trace to the PrintWriter passed in (including the root cause, if any)
 java.lang.String toString()
          Converts the exception to a string representation
 
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

CAUSED_BY

private static final java.lang.String CAUSED_BY
See Also:
Constant Field Values

cause

private java.lang.Throwable cause
Constructor Detail

NestedRuntimeException

public NestedRuntimeException()
Constructor


NestedRuntimeException

public NestedRuntimeException(java.lang.String msg)
Constructor


NestedRuntimeException

public NestedRuntimeException(java.lang.Throwable cause)
Constructor


NestedRuntimeException

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

Method Detail

getCause

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


toString

public java.lang.String toString()
Converts the exception to a string representation


printStackTrace

public void printStackTrace()
Sends a stack trace to System.err (including the root cause, if any)


printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Sends a stack trace to the PrintStream passed in (including the root cause, if any)


printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Sends a stack trace to the PrintWriter passed in (including the root cause, if any)