|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.jackrabbit.ocm.exception.NestableRuntimeException
public class NestableRuntimeException
Nestable runtime exception. Able to wrap a cause exception in JDK previous to 1.4
| Constructor Summary | |
|---|---|
protected |
NestableRuntimeException()
No-arg constructor used by markup exceptions. |
|
NestableRuntimeException(java.lang.String msg)
Construct a NestableRuntimeException with the specified detail message. |
|
NestableRuntimeException(java.lang.String msg,
java.lang.Throwable ex)
Construct a NestableRuntimeException with the specified detail message
and nested exception. |
|
NestableRuntimeException(java.lang.Throwable ex)
Construct a NestableRuntimeException with the specified
nested exception. |
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Return the nested cause, or null if none. |
java.lang.String |
getMessage()
Return the detail message, including the message from the nested exception if there is one. |
void |
printStackTrace(java.io.PrintStream ps)
Print the composite message and the embedded stack trace to the specified stream. |
void |
printStackTrace(java.io.PrintWriter pw)
Print the composite message and the embedded stack trace to the specified writer. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected NestableRuntimeException()
public NestableRuntimeException(java.lang.String msg)
NestableRuntimeException with the specified detail message.
msg - the detail message
public NestableRuntimeException(java.lang.String msg,
java.lang.Throwable ex)
NestableRuntimeException with the specified detail message
and nested exception.
msg - the detail messageex - the nested exceptionpublic NestableRuntimeException(java.lang.Throwable ex)
NestableRuntimeException with the specified
nested exception.
ex - the nested exception| Method Detail |
|---|
public java.lang.Throwable getCause()
null if none.
getCause in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwableps - the print streampublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepw - the print writer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||