org.apache.hivemind.impl
Class StrictErrorHandler

java.lang.Object
  extended by org.apache.hivemind.impl.StrictErrorHandler
All Implemented Interfaces:
ErrorHandler

public class StrictErrorHandler
extends java.lang.Object
implements ErrorHandler

An implementation of ErrorHandler that throws an ApplicationRuntimeException instead of logging an error.

Author:
Howard Lewis Ship

Constructor Summary
StrictErrorHandler()
           
 
Method Summary
 void error(org.apache.commons.logging.Log log, java.lang.String message, Location location, java.lang.Throwable cause)
          Handle a recoverable error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictErrorHandler

public StrictErrorHandler()
Method Detail

error

public void error(org.apache.commons.logging.Log log,
                  java.lang.String message,
                  Location location,
                  java.lang.Throwable cause)
Description copied from interface: ErrorHandler
Handle a recoverable error. May use the log to log the error (and location), or may throw a runtime exception (probably ApplicationRuntimeException).

Specified by:
error in interface ErrorHandler
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)