org.apache.hivemind.impl
Class DefaultErrorHandler

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

public class DefaultErrorHandler
extends java.lang.Object
implements ErrorHandler

Default implementation of ErrorHandler that simply logs error.

Author:
Howard Lewis Ship

Constructor Summary
DefaultErrorHandler()
           
 
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

DefaultErrorHandler

public DefaultErrorHandler()
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)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.