com.ibatis.common.exception
Class NestedRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
|
Fields inherited from class java.lang.RuntimeException |
|
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
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 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)