|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.ibatis.common.exception.NestedException
Nexted exception implementation. Thanks Claus.
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 |
private static final java.lang.String CAUSED_BY
private java.lang.Throwable cause
Constructor Detail |
public NestedException()
public NestedException(java.lang.String msg)
msg
- error messagepublic NestedException(java.lang.Throwable cause)
cause
- the nested exception (caused by)public NestedException(java.lang.String msg, java.lang.Throwable cause)
msg
- error messagecause
- the nested exception (caused by)Method Detail |
public java.lang.Throwable getCause()
public java.lang.String toString()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream ps)
ps
- - the PrintStream to send the output topublic void printStackTrace(java.io.PrintWriter pw)
pw
- - the PrintWriter to send the output to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |