|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.enhydra.error.ChainedRuntimeException
RuntimeException used as a base for creating an exception that has a chain of exceptions that lead to the derived exception. Very useful for interfaces where the implementation exception is not known.
Constructor Summary | |
protected |
ChainedRuntimeException(String msg)
Construct an exception without a specified cause. |
protected |
ChainedRuntimeException(String msg,
Throwable cause)
Construct an exception with an associated causing exception. |
protected |
ChainedRuntimeException(Throwable cause)
Construct an exception from a causing exception. |
Method Summary | |
Throwable |
getCause()
Get the causing exception associated with this exception. |
String |
getLocalizedMessage()
Creates a localized description of this exception. |
String |
getMessage()
Return the message associated with this exception. |
void |
printStackTrace()
Prints this exception and its backtrace, and the causes and their stack traces to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this exception and its backtrace, and the causes and their stack traces to the e specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this exception and its backtrace, and the causes and their stack traces to the e specified print writer. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
protected ChainedRuntimeException(String msg)
msg
- The message associated with the exception.protected ChainedRuntimeException(String msg, Throwable cause)
msg
- The message associated with the exception.cause
- The error or exception that cause this
exception.protected ChainedRuntimeException(Throwable cause)
cause
- The error or exception that cause this
exception. The message will be take be this object's
messasge.Method Detail |
public String getMessage()
getMessage
in interface ChainedThrowable
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in interface ChainedThrowable
getLocalizedMessage
in class Throwable
public Throwable getCause()
getCause
in interface ChainedThrowable
public void printStackTrace()
printStackTrace
in interface ChainedThrowable
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in interface ChainedThrowable
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter s)
printStackTrace
in interface ChainedThrowable
printStackTrace
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |