|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException net.sf.morph.util.NestableRuntimeException
public class NestableRuntimeException
A nestable runtime exception. Some documentation was copied directly from the documentation for the Throwable class in the Java SE 1.4 API.
Constructor Summary | |
---|---|
NestableRuntimeException()
Constructs a new exception with null as its detail message. |
|
NestableRuntimeException(java.lang.String message)
Constructs a new exception with the specified detail message. |
|
NestableRuntimeException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause. |
|
NestableRuntimeException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which
typically contains the class and detail message of cause). |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
|
void |
getMessage(java.lang.StringBuffer sb)
|
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream out)
|
void |
printStackTrace(java.io.PrintWriter out)
|
void |
setCause(java.lang.Throwable cause)
Initializes the cause of this throwable to the specified value. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NestableRuntimeException()
Throwable.initCause(Throwable)
.
public NestableRuntimeException(java.lang.String message)
Throwable.initCause(Throwable)
.
message
- the detail message. The detail message is saved for later
retrieval by the getCause()
method.public NestableRuntimeException(java.lang.String message, java.lang.Throwable cause)
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the
getCause()
method). (A
null
value is permitted, and indicates that the
cause is nonexistent or unknown.)public NestableRuntimeException(java.lang.Throwable cause)
(cause==null ? null : cause.toString())
(which
typically contains the class and detail message of cause). This
constructor is useful for exceptions that are little more than wrappers
for other throwables (for example, PrivilegedActionException
).
cause
- the cause (which is saved for later retrieval by the
getCause()
method). (A
null
value is permitted, and indicates that the
cause is nonexistent or unknown.)Method Detail |
---|
public void setCause(java.lang.Throwable cause)
cause
- the cause (which is saved for later retrieval by the
getCause()
method). (A
null
value is permitted, and indicates that the
cause is nonexistent or unknown.)public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public void getMessage(java.lang.StringBuffer sb)
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream out)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(java.io.PrintStream)
public void printStackTrace(java.io.PrintWriter out)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(java.io.PrintWriter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |