Sort members

This commit is contained in:
Gary Gregory 2024-03-09 13:42:39 -05:00
parent 58d5af4808
commit 64e51ecf83
1 changed files with 13 additions and 13 deletions

View File

@ -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 */