| org.apache.hivemind.ErrorHandler
All known Subclasses: org.apache.hivemind.impl.StrictErrorHandler, org.apache.hivemind.impl.DefaultErrorHandler,
ErrorHandler | public interface ErrorHandler (Code) | | Interface for handling recoverable errors. Recoverable errors are often
caused by improper configuration data in a module descriptor. Implementations
of this interface can either be brittle (throw an ApplicationRuntimeException
immediately) or "mellow" and just log the exception (with the expectation that
a more drastic failure may follow later).
author: Howard Lewis Ship |
error | public void error(Log log, String message, Location location, Throwable cause)(Code) | | Handle a recoverable error. May use the log to log the error (and location),
or may throw a runtime exception (probably ApplicationRuntimeException).
Parameters: log - the log used for logging the error Parameters: message - the message to display Parameters: location - location associated with the error if known (possibly null) Parameters: cause - the underlying exception that caused the error if known (possibly null) |
|
|