org.apache.felix.ipojo
Interface ErrorHandler


public interface ErrorHandler

Error Handler Service Definition. When exposed, this service is invoked when iPOJO throws a warning or an error. It's a hook on the internal iPOJO logger.

Author:
Felix Project Team

Method Summary
 void onError(ComponentInstance instance, String message, Throwable error)
          Method invokes when an error occurred.
 void onWarning(ComponentInstance instance, String message, Throwable error)
          Method invokes when a warning occurred.
 

Method Detail

onError

void onError(ComponentInstance instance,
             String message,
             Throwable error)
Method invokes when an error occurred.

Parameters:
instance - the instance (can be null)
message - the error message
error - the error itself (can be null)

onWarning

void onWarning(ComponentInstance instance,
               String message,
               Throwable error)
Method invokes when a warning occurred.

Parameters:
instance - the instance (can be null)
message - the error message
error - the error itself (can be null)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.