|
Oracle Data-aware Controls Reference | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The ErrorLogger interface implements the base methods for an ErrorLogger implementation. There are two types of loggers:
Buffered loggers keep the errors in some type of storage. ErrorListeners use these stored errors to make their decisions whether to recover or ignore an error situation.
Non-buffered loggers do not store errors. Instead, they format errors and dump them to devices such as a printer, an output window, log files, and so on.
| Method Summary | |
void |
addError(ErrorMessage emsg)
Adds an error to the logging facility. |
ErrorMessage[] |
findAllErrors()
Finds all errors associated with this source. |
ErrorMessage[] |
findErrors(ErrorSeverity severity,
ErrorType type)
Finds all errors of the specified severity and type, and returns an array of error messages. |
ErrorMessage[] |
findErrors(java.lang.Object source)
Finds all errors related to this source. |
java.lang.String |
getName()
Returns the name of the ErrorLogger. |
boolean |
isBuffered()
Determines whether this logger is a buffered logger. |
void |
removeAllErrors()
Removes all errors associated with this source from the logging facility. |
void |
removeError(ErrorMessage emsg)
Removes an error from the logging facility. |
| Method Detail |
public java.lang.String getName()
Loggers are registered in the ErrorManager by name. If this name is already registered, registration will fail and the ErrorManager will throw a NameAlreadyRegisteredException.
public void addError(ErrorMessage emsg)
emsg - the error message.public void removeError(ErrorMessage emsg)
emsg - the error message.ErrorLoggerAdapterpublic ErrorMessage[] findErrors(java.lang.Object source)
source - the source object.
ErrorLoggerAdapter
public ErrorMessage[] findErrors(ErrorSeverity severity,
ErrorType type)
severity - the error severity.type - the error type.
ErrorLoggerAdapterpublic ErrorMessage[] findAllErrors()
ErrorLoggerAdapterpublic void removeAllErrors()
ErrorLoggerAdapterpublic boolean isBuffered()
|
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.