oracle.dacf.util.errormanager
Interface ErrorMessageContext
- All Known Implementing Classes:
- DacfErrorMessageContext
- public interface ErrorMessageContext
The ErrorMessageContext interface represents the situation- or
error-specific context
information attached to the ErrorMessage. Listeners which must rely on
context
should check instanceof MyErrorMessageContextImpl, be specific-context
aware, and make decisions
based on context, error, and history.
Although ErrorMessageContext includes context-specific information,
it can also
include context-less information. This interface defines a method,
getAddedErrorAttributes, that returns
attributes containing context-less information. This method should be
called only by non-buffered
error loggers to check if there is context-less information added to the error message.
All context-specific methods are different for every context and can be used by a
context-aware listener or logger.
getAddedErrorAttributes
public ErrorAttribute[] getAddedErrorAttributes()
- Returns an array of ErrorAttributes that provide context-less information
to non-buffered error loggers.
- Returns:
- attributes containing context-less information.