public abstract class BIBaseRuntimeException extends java.lang.RuntimeException implements BIException
Modifier and Type | Field and Description |
---|---|
protected BIExceptionSupport |
m_support |
Constructor and Description |
---|
BIBaseRuntimeException(java.lang.String s,
java.lang.Throwable prevException)
Constructor for an exception that displays a customized message and that
passes on an underlying exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
elementAt(int index)
Retrieves the exception at the specified index.
|
java.util.Enumeration |
elements()
Retrieves An enumeration of exceptions in the exception chain.
|
java.lang.Throwable |
getBIRootCause()
Retrieves the root exception.
|
java.lang.Throwable |
getPreviousException()
Retrieves the underlying exception, if one exists.
|
void |
printStackTrace() |
void |
printStackTrace(java.io.PrintWriter pw) |
void |
printStackTraceSuper() |
void |
printStackTraceSuper(java.io.PrintWriter pw) |
int |
size()
Retrieves the size of the exception chain.
|
java.lang.String |
toString()
Retrieves the exception stack.
|
protected BIExceptionSupport m_support
public BIBaseRuntimeException(java.lang.String s, java.lang.Throwable prevException)
s
- The customized message.prevException
- The exception that underlies this exception.public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
public void printStackTraceSuper()
public void printStackTraceSuper(java.io.PrintWriter pw)
public java.lang.Throwable getPreviousException()
getPreviousException
in interface BIException
null
if there is no
underlying exception.public java.lang.String toString()
toString
in interface BIException
toString
in class java.lang.Throwable
public java.lang.Throwable getBIRootCause()
getBIRootCause
in interface BIException
public java.lang.Throwable elementAt(int index)
elementAt
in interface BIException
public java.util.Enumeration elements()
elements
in interface BIException
public int size()
size
in interface BIException