Sort members
This commit is contained in:
parent
58d5af4808
commit
64e51ecf83
|
@ -95,6 +95,19 @@ public class EventListenerSupport<L> implements Serializable {
|
|||
this.handler = Objects.requireNonNull(handler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles an exception thrown by a listener. By default rethrows the given Throwable.
|
||||
*
|
||||
* @param t The Throwable
|
||||
* @throws IllegalAccessException thrown by the listener.
|
||||
* @throws IllegalArgumentException thrown by the listener.
|
||||
* @throws InvocationTargetException thrown by the listener.
|
||||
* @since 3.15.0
|
||||
*/
|
||||
protected void handle(final Throwable t) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||
handler.accept(t);
|
||||
}
|
||||
|
||||
/**
|
||||
* Propagates the method call to all registered listeners in place of the proxy listener object.
|
||||
*
|
||||
|
@ -118,19 +131,6 @@ public class EventListenerSupport<L> implements Serializable {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles an exception thrown by a listener. By default rethrows the given Throwable.
|
||||
*
|
||||
* @param t The Throwable
|
||||
* @throws IllegalAccessException thrown by the listener.
|
||||
* @throws IllegalArgumentException thrown by the listener.
|
||||
* @throws InvocationTargetException thrown by the listener.
|
||||
* @since 3.15.0
|
||||
*/
|
||||
protected void handle(final Throwable t) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||
handler.accept(t);
|
||||
}
|
||||
}
|
||||
|
||||
/** Serialization version */
|
||||
|
|
Loading…
Reference in New Issue