| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.anthonyeden.lib.ChainedRuntimeException
ChainedRuntimeException | public class ChainedRuntimeException extends RuntimeException (Code) | | A chained runtime exception allows a parent exception to be specified
and accessible through the getNestedError() method
and will appear in stack traces.
author: Anthony Eden |
ChainedRuntimeException | public ChainedRuntimeException(Throwable nestedError)(Code) | | Create a new ChainedRuntimeException using the message of the nested
error as the exception message.
Parameters: nestedError - The nested error |
ChainedRuntimeException | public ChainedRuntimeException(String message, Throwable nestedError)(Code) | | Create a new ChainedRuntimeException.
Parameters: message - The message Parameters: nestedError - The parent exception |
getNestedError | public Throwable getNestedError()(Code) | | Return the parent exception.
The parent exception |
printStackTrace | public void printStackTrace()(Code) | | Print the stack trace to System.err
|
printStackTrace | public void printStackTrace(PrintStream out)(Code) | | Print the stack trace.
Parameters: out - The output stream |
printStackTrace | public void printStackTrace(PrintWriter out)(Code) | | Print the stack trace.
Parameters: out - The output writer |
|
|
|