org.apache.hivemind
Interface ErrorHandler
- All Known Implementing Classes: 
- DefaultErrorHandler, StrictErrorHandler
- public interface ErrorHandler 
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
| Method Summary | 
|  void | error(org.apache.commons.logging.Log log,
           java.lang.String message,
           Location location,
           java.lang.Throwable cause)Handle a recoverable error.
 | 
 
error
void error(org.apache.commons.logging.Log log,
           java.lang.String message,
           Location location,
           java.lang.Throwable cause)
- 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
- message- the message to display
- location- location associated with the error if known (possibly null)
- cause- the underlying exception that caused the error if known (possibly null)
 
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.