Oracle Data-aware Controls Reference

oracle.dacf.util.errorloggers
Class DacfErrorPopupLogger

java.lang.Object
  extended byoracle.dacf.util.errormanager.ErrorLoggerAdapter
      extended byoracle.dacf.util.errorloggers.DacfErrorPopupLogger
All Implemented Interfaces:
ErrorLogger

public class DacfErrorPopupLogger
extends ErrorLoggerAdapter

The DacfErrorPopupLogger is a non-buffered logger class that pops up an Error Dialog for every DAC error message. This class extends ErrorLoggerAdapter, which defines an abstract non-buffered logger, and provides implementations of the addError and getName methods.

By default, DacfErrorPopupLogger pops up error messages for only these severities:

DacfErrorPopupLogger will not check error types (for example, ErrorType.ALL_TYPES). You can change this behavior by modifying the error severity and error type definitions.

DacfErrorPopupLogger is the only logger that is active by default. You can disable it with the following command :

      ErrorManager.removeErrorLogger
                    (ErrorManager.findLoggerByName(DacfErrorPopup.NAME));
 

See Also:
addSeverityDefinition(ErrorSeverity), addTypeDefinition(ErrorType), ErrorLogger, ErrorSeverity, ErrorType

Field Summary
static java.lang.String NAME
          String returned by the getName() method.
 
Constructor Summary
DacfErrorPopupLogger()
          The default Constructor.
 
Method Summary
 void addError(ErrorMessage emsg)
          Pops up an error message dialog when adding a DACF error during runtime.
 void addSeverityDefinition(ErrorSeverity severity)
          Sets all of the severity definitions for which you want the logger to popup an error message.
 void addTypeDefinition(ErrorType type)
          Sets all of the type definitions for which you want the logger to popup an error message.
 java.lang.String getName()
          Returns the unique name used to register the error logger.
 void removeSeverityDefinition(ErrorSeverity severity)
          Removes an error severity definition from the table.
 void removeTypeDefinition(ErrorType type)
          Removes an error type definition from the table.
 
Methods inherited from class oracle.dacf.util.errormanager.ErrorLoggerAdapter
findAllErrors, findErrors, findErrors, isBuffered, removeAllErrors, removeError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static java.lang.String NAME
String returned by the getName() method.

Constructor Detail

DacfErrorPopupLogger

public DacfErrorPopupLogger()
The default Constructor. A DacfErrorPopupLogger is created popping up a DacfErrorDialog for the following error severities: By default, it will not check error types (for example, ErrorType.ALL_TYPES).

See Also:
addSeverityDefinition(ErrorSeverity), addTypeDefinition(ErrorType)
Method Detail

addError

public void addError(ErrorMessage emsg)
Pops up an error message dialog when adding a DACF error during runtime.

Specified by:
addError in interface ErrorLogger
Overrides:
addError in class ErrorLoggerAdapter
Parameters:
emsg - the error message.

getName

public java.lang.String getName()
Returns the unique name used to register the error logger.

Returns:
the name of this logger.

addSeverityDefinition

public void addSeverityDefinition(ErrorSeverity severity)
Sets all of the severity definitions for which you want the logger to popup an error message. When adding ErrorSeverity.ALL_SEVERITIES, it will empty the existing table and add ErrorSeverity.ALL_SEVERITIES. A call to addError will popup an error for every severity and the appropriate error type.

Parameters:
severity - the error severity you want to add.

removeSeverityDefinition

public void removeSeverityDefinition(ErrorSeverity severity)
Removes an error severity definition from the table.

Parameters:
severity - the error severity you want to remove.

addTypeDefinition

public void addTypeDefinition(ErrorType type)
Sets all of the type definitions for which you want the logger to popup an error message. When adding ErrorType.ALL_TYPES, it will wipe out the existing table and the type check will be ignored. When adding ErrorType.ALL_TYPES it will empty the existing table and add ErrorType.ALL_TYPES. A call to addError will popup an error for every severity and the appropriate error type.

Parameters:
type - the error type you want to add.

removeTypeDefinition

public void removeTypeDefinition(ErrorType type)
Removes an error type definition from the table.

Parameters:
type - the error type you want to remove.

Oracle Data-aware Controls Reference

 

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