|
Oracle Data-aware Controls Reference | ||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
ErrorAttribute | The ErrorAttribute interface defines an error attribute to be recorded in the logging facilities. |
ErrorLogger | The ErrorLogger interface implements the base methods for an ErrorLogger implementation. |
ErrorManagerListener | Defines the interface for ErrorManager event listeners. |
ErrorMessageContext | The ErrorMessageContext interface represents the situation- or error-specific context information attached to the ErrorMessage. |
Class Summary | |
ErrorLoggerAdapter | The ErrorLoggerAdapter interface is the Adapter implementation for the error logger, and defines an abstract non-buffered logger. |
ErrorManager | The ErrorManager is a singleton object that manages the storage and flow of ErrorMessage objects. |
ErrorMessage | The ErrorMessage class is an overloaded class and is used to define an error. |
ErrorMessageText | The ErrorMessageText class is an overloaded class that defines the error message as a message text and a message ID. |
ErrorSeverity | The ErrorSeverity class definines the text to be used for a given error severity. |
ErrorTimeStamp | The ErrorTimeStamp class defines the time stamp given to an error message when it is logged. |
ErrorType | The ErrorType class provides the base methods for defining error types or categories. |
SimpleErrorAttributeImpl | The SimpleErrorAttributeImpl class is the simplest implementation of the ErrorAttribute interface. |
Exception Summary | |
AddErrorException | An ErrorLogger can throw this runtime exception when adding an error to its log. |
ErrorMessageVetoException | The ErrorMessageVetoException is thrown by error listeners when they want to veto either the: |
NameAlreadyRegisteredException | The ErrorManager throws a NameAlreadyRegisteredException when an attempt is made to register an ErrorListener or ErrorLogger with a name that has already been used for registration. |
The ErrorManager is a singleton object that manages the storage and flow of ErrorMessage objects, and administers the registration of error listeners and error loggers.
The ErrorManager is invoked when:
The ErrorManager notifies all registered error listeners when an error is added or removed. To be elegible for notification, the error listener must be registered. Each of these error listeners can veto the adding or the removing of the error. This vetoing will rollback the error and the error will not be recorded in the error loggers. If the error is not vetoed, it will be recorded in the error loggers. There are two types of error loggers:
The default ErrorMessage class is without context (except for the source object). This is the generic ErrorMessage and defines these attributes:
The source object is used by listeners to throw exceptions and possibly by non-buffered loggers to interact between the user and the error stack.
The ErrorType, ErrorSeverity, ErrorMessageText attributes implement ErrorAttribute and Enumeration. The ErrorTimeStamp attribute is constructed by the class constructor. These attributes are context-less and can be used for indication, status checking, and so on.
The context-specific version of the ErrorMessage class contains these context-less attributes but also includes a Context attribute. The Context attribute allows you to define your own error messages by extending the ErrorMessage class and adding error-specific information.
To extend ErrorMessage, you must write an ErrorMessageContext class. This class holds all the information used by error listeners to make veto descisions, or in the case of DACF controls, the information used by the NavigationManager. The ErrorMessageContext class can provide some of its context as context-less information in the form of error attributes.
For an example of a context-specific ErrorMessage class, see the oracle.dacf.dataset.dacfErrorMessageContext class. It adds DacfContext (dataItem, row, control, related errors) to ErrorMessage and provides a Context-description of all fields it wants to log to non-buffered loggers.
The attributes ErrorType, ErrorSeverity, ErrorMessageText implement:
The ErrorAttribute class implements the context-specific information. It defines every error component as a label and a description (getLabel()/toString()) and allows any dynamic UI to represent every error component with the proper label.
To avoid these conflicts, a special type of enumeration has been implemented. A developer wanting to extend the definitions of ErrorType, ErrorSeverity, or ErrorMessageText must subclass and provide either enumerated variables or a Factory class. For examples of this type of enumeration, see oracle.dacf.dataset.DacfSeverity, oracle.dacf.dataset.DacfType, and oracle.dacf.util.errormanager.ErrorMessageText.
NOTE:
One ErrorLogger is registered by default: this is the DACFErrorPopupLogger that pops up errors in DAC applications. If you do not want this behavior, or if you want to replace the pop-up errors with your own ErrorLogger, you must remove the registered Logger. You remove the logger with the following statement:
import oracle.dacf.util.errorloggers.DacfErrorPopupLogger; .......... .......... ErrorManager.removeErrorLogger(DacfErrorPopupLogger.NAME);
DacfSeverity
,
DacfType
,
DacfErrorPopupLogger
,
ErrorMessageText
,
ErrorType
,
ErrorSeverity
,
ErrorMessage
|
Oracle Data-aware Controls Reference | ||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
Copyright © 1997, 2003, Oracle. All rights reserved.