com.ls
Class BaseRuntimeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.ls.BaseRuntimeException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CommandNotAvailableException, CommandNotFoundException, GUINotAvailableException, InvalidArgumentException, MissingDataException, ProgrammingException
- public class BaseRuntimeException
- extends RuntimeException
Living systems base runtime exception for all
other runtime exceptions.
- Version:
- $Revision: 1.1 $
- Author:
- Last modified by $Author: MFehrenbach $
- See Also:
- Serialized Form
innerThrowable
protected Throwable innerThrowable
- Nested exception to hold wrapped exception.
BaseRuntimeException
public BaseRuntimeException()
- Creates a
BaseRuntimeException
with no specified detail message.
BaseRuntimeException
public BaseRuntimeException(String description)
- Creates a
BaseRuntimeException
with the specified detail message.
- Parameters:
description
- The detail message.
BaseRuntimeException
public BaseRuntimeException(String description,
Throwable throwable)
- Creates a
BaseRuntimeException
with the specified
detail message and nested exception.
- Parameters:
description
- The detail message.throwable
- The nested exception.
getMessage
public String getMessage()
- Returns the detail message, including the message from the
nested exception if there is one.
- Overrides:
getMessage
in class Throwable
- Returns:
- Well formatted detail message.
printStackTrace
public void printStackTrace(PrintStream printStream)
- Prints the composite message and the embedded stack trace to
the specified stream
printStream
.
- Overrides:
printStackTrace
in class Throwable
- Parameters:
printStream
- The print stream.
printStackTrace
public void printStackTrace()
- Prints the composite message to
System.err
.
- Overrides:
printStackTrace
in class Throwable
printStackTrace
public void printStackTrace(PrintWriter printWriter)
- Prints the composite message and the embedded stack trace
to the specified print writer
printWriter
.
- Overrides:
printStackTrace
in class Throwable
- Parameters:
printWriter
- The print writer.
getNestedThrowable
public Throwable getNestedThrowable()
- Returns the nested throwable.
- Returns:
- The nested throwable.