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

Field Summary
protected  Throwable innerThrowable
          Nested exception to hold wrapped exception.
 
Constructor Summary
BaseRuntimeException()
          Creates a BaseRuntimeException with no specified detail message.
BaseRuntimeException(String description)
          Creates a BaseRuntimeException with the specified detail message.
BaseRuntimeException(String description, Throwable throwable)
          Creates a BaseRuntimeException with the specified detail message and nested exception.
 
Method Summary
 String getMessage()
          Returns the detail message, including the message from the nested exception if there is one.
 Throwable getNestedThrowable()
          Returns the nested throwable.
 void printStackTrace()
          Prints the composite message to System.err.
 void printStackTrace(PrintStream printStream)
          Prints the composite message and the embedded stack trace to the specified stream printStream.
 void printStackTrace(PrintWriter printWriter)
          Prints the composite message and the embedded stack trace to the specified print writer printWriter.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

innerThrowable

protected Throwable innerThrowable
Nested exception to hold wrapped exception.
Constructor Detail

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.
Method Detail

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.