|
|||||||||
| Home >> All >> com >> lutris >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.lutris.util
Class ChainedRuntimeException

java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.lutris.util.ChainedRuntimeException
- All Implemented Interfaces:
- ChainedThrowable, java.io.Serializable
- public class ChainedRuntimeException
- extends java.lang.RuntimeException
- implements ChainedThrowable
- extends java.lang.RuntimeException
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.
| Nested Class Summary |
| Nested classes inherited from class java.lang.Throwable |
|
| Field Summary | |
private java.lang.Throwable |
cause
|
| Fields inherited from class java.lang.RuntimeException |
|
| Fields inherited from class java.lang.Throwable |
|
| Constructor Summary | |
ChainedRuntimeException(java.lang.String msg)
Construct an exception without a specified cause. |
|
ChainedRuntimeException(java.lang.String msg,
java.lang.Throwable cause)
Construct an exception with an associated causing exception. |
|
ChainedRuntimeException(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 ChainedRuntimeException and its backtrace, and the causes and their stack traces to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this ChainedRuntimeException and its backtrace, and the causes and their stack traces to the e specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this ChainedRuntimeException 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 |
| Field Detail |
cause
private java.lang.Throwable cause
| Constructor Detail |
ChainedRuntimeException
public ChainedRuntimeException(java.lang.String msg)
- Construct an exception without a specified cause.
ChainedRuntimeException
public ChainedRuntimeException(java.lang.String msg, java.lang.Throwable cause)
- Construct an exception with an associated causing exception.
ChainedRuntimeException
public ChainedRuntimeException(java.lang.Throwable cause)
- Construct an exception from a causing exception.
| Method Detail |
getMessage
public java.lang.String getMessage()
- Return the message associated with this exception. If causes
are included, they will be appended to the message.
- Specified by:
getMessagein interfaceChainedThrowable
getCause
public java.lang.Throwable getCause()
- Get the causing exception associated with this exception.
- Specified by:
getCausein interfaceChainedThrowable
printStackTrace
public void printStackTrace()
- Prints this ChainedRuntimeException and its backtrace, and the causes
and their stack traces to the standard error stream.
- Specified by:
printStackTracein interfaceChainedThrowable
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- Prints this ChainedRuntimeException and its backtrace, and the causes
and their stack traces to the e specified print stream.
- Specified by:
printStackTracein interfaceChainedThrowable
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- Prints this ChainedRuntimeException and its backtrace, and the causes
and their stack traces to the e specified print writer.
- Specified by:
printStackTracein interfaceChainedThrowable
|
|||||||||
| Home >> All >> com >> lutris >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC