Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.thin.beans
Class CaboErrorHandler

java.lang.Object
  |
  +--oracle.dss.thin.beans.CaboErrorHandler
All Implemented Interfaces:
ErrorHandler

public class CaboErrorHandler
extends java.lang.Object
implements ErrorHandler

An implementation of a BI Beans ErrorHandler that uses the oracle.cabo.share.error.ErrorLog interface to perform logging.

Typically, an instance of oracle.cabo.share.error.ServletErrorLog is used as the implementation of the ErrorLog.


Constructor Summary
CaboErrorHandler(oracle.cabo.share.error.ErrorLog log)
          Constructor

 

Method Summary
 void error(java.lang.Throwable t, java.lang.String _class, java.lang.String routine)
          Responds to trapped exceptions.
 int getDebugMode()
          Retrieves the debug mode for the error handler.
 void log(java.lang.String message, java.lang.String _class, java.lang.String routine)
          Responds to abnormal conditions that are not trapped exceptions.
 void setDebugMode(int mode)
          Specifies the debug mode for the error handler.
 void trace(java.lang.String message, java.lang.String _class, java.lang.String routine)
          Responds to trace messages.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

CaboErrorHandler

public CaboErrorHandler(oracle.cabo.share.error.ErrorLog log)
Constructor
Parameters:
log - The UIX error log
Method Detail

setDebugMode

public void setDebugMode(int mode)
Specifies the debug mode for the error handler. This method also allows user to set multiple debug mode. For example, to display both log messages and trace messages, call setDebugMode (DefaultErrorHandler.SHOW_TRACE+DefaultErrorHandler..SHOW_LOG)
Parameters:
mode - The debug mode for the error handler. Valid values are DefaultErrorHandler.SHOW_TRACE, DefaultErrorHandler.SHOW_LOG, DefaultErrorHandler.SHOW_ERROR, DefaultErrorHandler.SHOW_NONE , and DefaultErrorHandler.SHOW_ALL.

getDebugMode

public int getDebugMode()
Retrieves the debug mode for the error handler. This method also allows user to get the debug mode.
Returns:
The debug mode for the error handler.

error

public void error(java.lang.Throwable t,
                  java.lang.String _class,
                  java.lang.String routine)
Responds to trapped exceptions. This method prints the date, the class name, and the routine name. Then it prints the stack trace from the exception.
Specified by:
error in interface ErrorHandler
Parameters:
exception - The trapped exception.
_class - The name of the class in which the exception was caught.
routine - The name of the routine in which the exception was caught.

log

public void log(java.lang.String message,
                java.lang.String _class,
                java.lang.String routine)
Responds to abnormal conditions that are not trapped exceptions. This method prints "PROBLEM: In ", the class name, the routine name, and the message.
Specified by:
log in interface ErrorHandler
Parameters:
message - A message that identifies the problem.
_class - The name of the class in which the problem occurred.
routine - The name of the routine in which the problem occurred.

trace

public void trace(java.lang.String message,
                  java.lang.String _class,
                  java.lang.String routine)
Responds to trace messages. This method logs the class name, the routine name, and the message.
Specified by:
trace in interface ErrorHandler
Parameters:
message - A message that describes the accomplishment.
_class - The name of the class in which the accomplishment occurred.
routine - The name of the routine in which the accomplishment occurred.

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.