Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

oracle.dss.util
Class BIExceptionSupport

java.lang.Object
  extended by 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

Field Summary
protected  java.lang.Throwable m_previous
           
protected  java.lang.String m_sLineTerm
           
 
Constructor Summary
BIExceptionSupport()
           
 
Method Summary
 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 setPreviousException(java.lang.Throwable prevException)
           
 int size(java.lang.Throwable exception)
           
 java.lang.String toString(java.lang.Throwable exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_previous

protected java.lang.Throwable m_previous

m_sLineTerm

protected java.lang.String m_sLineTerm
Constructor Detail

BIExceptionSupport

public BIExceptionSupport()
Method Detail

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.

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

Copyright © 1997, 2011, Oracle. All rights reserved.