com.ls
Class BaseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ls.BaseException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BuildException, FormulaCalculationException, LarsException, LogException, NotRunningException, ObjectControlException, PKIBaseException, PoolObjectNotAvailableException, ResourceBundleException, TaskException, TimeoutException, ValidationException, XMLException
- public class BaseException
- extends Exception
Living systems base exception for all other
exceptions (but no runtime exceptions).
- Version:
- $Revision: 1.1 $
- Author:
- Last modified by $Author: MFehrenbach $
- See Also:
- Serialized Form
Constructor Summary |
BaseException()
Creates a BaseException with no specified detail message. |
BaseException(String description)
Creates a BaseException with the specified detail message. |
BaseException(String description,
Throwable throwable)
Creates a BaseException with the specified
detail message and nested exception. |
innerThrowable
protected Throwable innerThrowable
- Nested exception to hold wrapped exception.
BaseException
public BaseException()
- Creates a
BaseException
with no specified detail message.
BaseException
public BaseException(String description)
- Creates a
BaseException
with the specified detail message.
- Parameters:
description
- The detail message.
BaseException
public BaseException(String description,
Throwable throwable)
- Creates a
BaseException
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.