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

Quick Search    Search Deep

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

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

public class NestedException
extends java.lang.Exception

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.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NestedException()
          Constructor
NestedException(java.lang.String msg)
          Constructor
NestedException(java.lang.String msg, java.lang.Throwable cause)
          Constructor
NestedException(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

NestedException

public NestedException()
Constructor


NestedException

public NestedException(java.lang.String msg)
Constructor


NestedException

public NestedException(java.lang.Throwable cause)
Constructor


NestedException

public NestedException(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)