JSR-043: JTAPI-1.4

javax.telephony.media.provider
Interface Dispatcher.ExceptionHandler

Enclosing class:
Dispatcher

public static interface Dispatcher.ExceptionHandler

Supplies a method to handle Exceptions generated while dispatching.


Method Summary
 void onDispatcherException(Dispatcher dispatcher, java.lang.Exception exception, java.util.EventListener listener, Dispatcher.DispatchableEvent event)
          Callback from the Dispatcher if there is an exception while dispatching event to a Listener.
 

Method Detail

onDispatcherException

public void onDispatcherException(Dispatcher dispatcher,
                                  java.lang.Exception exception,
                                  java.util.EventListener listener,
                                  Dispatcher.DispatchableEvent event)
Callback from the Dispatcher if there is an exception while dispatching event to a Listener.

Typically, this prints the Exception. and may invoke dispatcher.stop().

Parameters:
dispatcher - the Dispatcher instance
exception - the Exception thrown while processing the Event
listener - the EventListener when the Exception occured
event - the DispatchableEvent when the Exception occured

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org