|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Error | +--org.enhydra.error.ChainedError
Error used as a base for creating an error that has a chain of exceptions that lead to the derived error. Very useful for interfaces where the implementation exception is not known.
Constructor Summary | |
protected |
ChainedError(String msg)
Construct an error without a specified cause. |
protected |
ChainedError(String msg,
Throwable cause)
Construct an exception with an associated causing exception. |
protected |
ChainedError(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 ChainedError(String msg)
msg
- The message associated with the exception.protected ChainedError(String msg, Throwable cause)
msg
- The message associated with the exception.cause
- The error or exception that cause this exception.protected ChainedError(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 |