oracle.dss.util
Class BIExceptionSupport
java.lang.Object
oracle.dss.util.BIExceptionSupport
- All Implemented Interfaces:
- java.io.Serializable
public class BIExceptionSupport
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_previous
protected java.lang.Throwable m_previous
m_sLineTerm
protected java.lang.String m_sLineTerm
BIExceptionSupport
public BIExceptionSupport()
setPreviousException
public void setPreviousException(java.lang.Throwable prevException)
getPreviousException
public java.lang.Throwable getPreviousException()
toString
public java.lang.String toString(java.lang.Throwable exception)
printStackTrace
public void printStackTrace(java.lang.Throwable exception)
getBIRootCause
public java.lang.Throwable getBIRootCause(java.lang.Throwable exception)
elementAt
public java.lang.Throwable elementAt(int index,
java.lang.Throwable exception)
elements
public java.util.Enumeration elements(java.lang.Throwable exception)
size
public int size(java.lang.Throwable exception)
getException
public BIException getException(BIException biException,
java.lang.String strMessage)
- Determines whether the specified string appears in the
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);
- Parameters:
biException
- A BIException
which represents the exception
stack to be searched.strMessage
- A String
which represents the string to
find in the BIException
.
- Returns:
- The
BIException
that is associated with the specified
message string, or null.
findException
public BIException findException(BIException biException,
int nErrorCode)
- Determines whether the specified error code appears in the
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);
- Parameters:
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.
- Returns:
- The
BIException
that is associated with the specified
error code, or null.
Copyright © 1997, 2009, Oracle. All rights reserved.