Compare commits
No commits in common. "52719d22d441935554155b9f03536c8e0e1c48d1" and "d9ddc0e1a9a329d9a52e8a4c34d1940c27f7dae5" have entirely different histories.
52719d22d4
...
d9ddc0e1a9
@ -67,7 +67,7 @@ public final class EventBus {
|
|||||||
* @throws EventBusException if an event handler isn't accessible or has an invalid signature
|
* @throws EventBusException if an event handler isn't accessible or has an invalid signature
|
||||||
* @since 0.0.1
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
public void dispatch(Object event) throws EventBusException {
|
public void dispatch(Object event) {
|
||||||
Objects.requireNonNull(event);
|
Objects.requireNonNull(event);
|
||||||
logger.log(Level.INFO, "Dispatching event {0}", event);
|
logger.log(Level.INFO, "Dispatching event {0}", event);
|
||||||
|
|
||||||
@ -90,10 +90,6 @@ public final class EventBus {
|
|||||||
|
|
||||||
// Warn about system event not being handled
|
// Warn about system event not being handled
|
||||||
logger.log(Level.WARNING, event + " not handled due to exception", e);
|
logger.log(Level.WARNING, event + " not handled due to exception", e);
|
||||||
else if (e.getCause() instanceof Error)
|
|
||||||
|
|
||||||
// Transparently pass error to the caller
|
|
||||||
throw (Error) e.getCause();
|
|
||||||
else
|
else
|
||||||
|
|
||||||
// Dispatch exception event
|
// Dispatch exception event
|
||||||
|
Loading…
Reference in New Issue
Block a user