Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind
Interface ErrorHandler  view ErrorHandler download ErrorHandler.java


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).


Method Summary
 void error(org.apache.commons.logging.Log log, java.lang.String message, Location location, java.lang.Throwable cause)
          Handle a recoverable error.
 

Method Detail

error

public 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).