|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
org.enhydra.shark.api.RootError
public class RootError
This Error allows implementation of chain exceptions, and this implementation takes care if JDK1.3 or JDK1.4 is used.
Constructor Summary | |
---|---|
RootError()
Constructs a new exception with null as its detail message. |
|
RootError(java.lang.String message)
Constructs a new exception with the specified detail message. |
|
RootError(java.lang.String message,
java.lang.Throwable t)
Constructs a new exception with the specified detail message and cause. |
|
RootError(java.lang.Throwable t)
Constructs a new exception with the specified cause. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Returns the cause of this exception. |
java.lang.Throwable |
initCause(java.lang.Throwable t)
Initializes the cause of this exception to the specified value. |
void |
printStackTrace()
Method printStackTrace prints the stack trace to the standard error stream. |
void |
printStackTrace(java.io.PrintStream ps)
Method printStackTrace prints the stack trace to the ps PrintStream. |
void |
printStackTrace(java.io.PrintWriter pw)
Method printStackTrace prints the stack trace to the pw PrintWriter. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RootError()
public RootError(java.lang.String message)
message
- the detail message.public RootError(java.lang.Throwable t)
t
- the cause. A null value is permitted, and indicates that
the cause is nonexistent or unknown.public RootError(java.lang.String message, java.lang.Throwable t)
message
- the detail message.t
- the cause. A null value is permitted, and indicates that
the cause is nonexistent or unknown.Method Detail |
---|
public java.lang.Throwable initCause(java.lang.Throwable t) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
initCause
in class java.lang.Throwable
t
- the cause.
java.lang.IllegalArgumentException
java.lang.IllegalStateException
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
ps
- PrintStream used for the output.public void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
pw
- PrintWriter used for the output.public void printStackTrace()
printStackTrace
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |