public class BIExceptionSupport
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Throwable |
m_previous |
protected java.lang.String |
m_sLineTerm |
Constructor and Description |
---|
BIExceptionSupport() |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
elementAt(int index, java.lang.Throwable exception) |
java.util.Enumeration |
elements(java.lang.Throwable exception) |
BIException |
findException(BIException biException, int nErrorCode)
Determines whether the specified error code appears in the
BIException exception stack. |
java.lang.Throwable |
getBIRootCause(java.lang.Throwable exception) |
BIException |
getException(BIException biException, java.lang.String strMessage)
Determines whether the specified string appears in the
BIException stack. |
java.lang.Throwable |
getPreviousException() |
void |
printStackTrace(java.lang.Throwable exception) |
void |
printStackTrace(java.lang.Throwable exception, java.io.PrintWriter pw) |
void |
setPreviousException(java.lang.Throwable prevException) |
int |
size(java.lang.Throwable exception) |
java.lang.String |
toString(java.lang.Throwable exception) |
protected java.lang.Throwable m_previous
protected java.lang.String m_sLineTerm
public void setPreviousException(java.lang.Throwable prevException)
public java.lang.Throwable getPreviousException()
public java.lang.String toString(java.lang.Throwable exception)
public void printStackTrace(java.lang.Throwable exception, java.io.PrintWriter pw)
public void printStackTrace(java.lang.Throwable exception)
public java.lang.Throwable getBIRootCause(java.lang.Throwable exception)
public java.lang.Throwable elementAt(int index, java.lang.Throwable exception)
public java.util.Enumeration elements(java.lang.Throwable exception)
public int size(java.lang.Throwable exception)
public BIException getException(BIException biException, java.lang.String strMessage)
BIException
stack. This is particularly useful when the string used to create the BIException
represents an error code that is used to lookup the associated error string. For example, in the following error, 'DVT-15000' which is represented by the EXC_METADATAMANAGER_NOT_SET literal would represent the error code: DVT-15000 MetadataManager property not set. public static final String EXC_METADATAMANAGER_NOT_SET = "DVT-15000"; BIException biException = getException (EXC_METADATAMANAGER_NOT_SET);biException
- A BIException
which represents the exception stack to be searched.strMessage
- A String
which represents the string to find in the BIException
.BIException
that is associated with the specified message string, or null.public BIException findException(BIException biException, int nErrorCode)
BIException
exception stack. For example, if we were looking for a 'DVT-15000 MetadataManager property not set.' exception, we would pass in an error code value of '15000': BIException biExceptionFound = findException (biException, 15000);biException
- A BIException
which represents the exception stack to be searched.nErrorCode
- A int
which represents the error code to find in the BIException
stack.BIException
that is associated with the specified error code, or null.