Loading…
Reference in new issue
There is no content yet.
Delete Branch 'f/exception-event'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Deleting a branch is permanent. It CANNOT be undone. Continue?
An exception event wraps an event that caused an exception inside of an
event handler while being dispatched and is then dispatched to dedicated
handlers.
Closes #11
👍
handlers.next().execute(event);
try {
handlers.next().execute(event);
} catch (InvocationTargetException e) {
Why only
InvocationTargetException
and notThrowable
?Because the
InvocationTargetException
specifically wraps an exception thrown by the event handler, while theIllegalAccessException
andIllegalArgumentException
are only thrown in the case of an invalid configuration.d9ddc0e1a9
into develop 2 years agoReviewers
d9ddc0e1a9
.