|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.util.errormanager.ErrorLoggerAdapter
oracle.dacf.util.errorloggers.DacfErrorPopupLogger
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));
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 |
public static java.lang.String NAME
Constructor Detail |
public DacfErrorPopupLogger()
addSeverityDefinition(ErrorSeverity)
,
addTypeDefinition(ErrorType)
Method Detail |
public void addError(ErrorMessage emsg)
addError
in interface ErrorLogger
addError
in class ErrorLoggerAdapter
emsg
- the error message.public java.lang.String getName()
public void addSeverityDefinition(ErrorSeverity severity)
severity
- the error severity you want to add.public void removeSeverityDefinition(ErrorSeverity severity)
severity
- the error severity you want to remove.public void addTypeDefinition(ErrorType type)
type
- the error type you want to add.public void removeTypeDefinition(ErrorType type)
type
- the error type you want to remove.
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.