com.ibatis.common.exception
Class NestedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibatis.common.exception.NestedException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DaoException, JtaTransactionException
- public class NestedException
- extends java.lang.Exception
Nexted exception implementation. Thanks Claus.
- See Also:
- Serialized Form
Field Summary |
private java.lang.Throwable |
cause
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
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 |
cause
private java.lang.Throwable cause
NestedException
public NestedException()
- Constructor
NestedException
public NestedException(java.lang.String msg)
- Constructor
- Parameters:
msg
- error message
NestedException
public NestedException(java.lang.Throwable cause)
- Constructor
- Parameters:
cause
- the nested exception (caused by)
NestedException
public NestedException(java.lang.String msg,
java.lang.Throwable cause)
- Constructor
- Parameters:
msg
- error messagecause
- the nested exception (caused by)
getCause
public java.lang.Throwable getCause()
- Gets the causing exception, if any.
toString
public java.lang.String toString()
printStackTrace
public void printStackTrace()
printStackTrace
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
public void printStackTrace(java.io.PrintWriter pw)