Groovy Documentation

griffon.plugins.tasks
[Java] Interface ExceptionHandler


public interface ExceptionHandler

Handler for exceptions that occurred in an event listener.

Authors:
Raffael Herzog


Field Summary
ExceptionHandler RETHROW_EXCEPTION_HANDLER

 
Method Summary
boolean handleException(Object listener, Throwable exception)

Handle an exception that occurred in an event listener.

 

Field Detail

RETHROW_EXCEPTION_HANDLER

public ExceptionHandler RETHROW_EXCEPTION_HANDLER


 
Method Detail

handleException

public boolean handleException(Object listener, Throwable exception)
Handle an exception that occurred in an event listener. The exception may also be rethrown.
throws:
Throwable Rethrowing or converting exceptions.
Parameters:
listener - The listener that throw the exception.
exception - The thrown exception.
Returns:
true, if the remaining listeners should be notified, false to cancel.


 

Groovy Documentation