|
EAF 7.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
com.lutris.util.ChainedError
public class 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 | |
---|---|
ChainedError(java.lang.String msg)
Construct an error without a specified cause. |
|
ChainedError(java.lang.String msg,
java.lang.Throwable cause)
Construct an exception with an associated causing exception. |
|
ChainedError(java.lang.Throwable cause)
Construct an exception from a causing exception. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Get the causing exception associated with this exception. |
java.lang.String |
getMessage()
Return the message associated with this exception. |
void |
printStackTrace()
Prints this ChainedError and its backtrace, and the causes and their stack traces to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this ChainedError and its backtrace, and the causes and their stack traces to the e specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this ChainedError and its backtrace, and the causes and their stack traces to the e specified print writer. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChainedError(java.lang.String msg)
msg
- The message associated with the exception.public ChainedError(java.lang.String msg, java.lang.Throwable cause)
msg
- The message associated with the exception.cause
- The error or exception that cause this
exception.public ChainedError(java.lang.Throwable cause)
cause
- The error or exception that cause this
exception. The message will be take be this object's
messasge.Method Detail |
---|
public java.lang.String getMessage()
getMessage
in interface ChainedThrowable
getMessage
in class java.lang.Throwable
public java.lang.Throwable getCause()
getCause
in interface ChainedThrowable
getCause
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in interface ChainedThrowable
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in interface ChainedThrowable
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in interface ChainedThrowable
printStackTrace
in class java.lang.Throwable
|
EAF 7.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |