ErrorHandlerAdapter class
Handler interface for {@link ErrorEvent} events.
class ErrorHandlerAdapter extends EventHandlerAdapter implements ErrorHandler { ErrorHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback); /** * Called when ErrorEvent is fired. * * @param event the {@link ErrorEvent} that was fired */ void onError(ErrorEvent event) { callback(event); } }
Extends
EventHandlerAdapter > ErrorHandlerAdapter
Implements
Constructors
new ErrorHandlerAdapter(EventHandlerAdapterCallback callback) #
Properties
EventHandlerAdapterCallback callback #
inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback
Methods
void onError(ErrorEvent event) #
Called when ErrorEvent is fired.
@param event the {@link ErrorEvent} that was fired
void onError(ErrorEvent event) { callback(event); }