Allow to Override Exception Catching Mechanism #31
Labels
No Label
1
13
2
21
3
34
5
55
8
bug
core
could have
duplicate
enhancement
help wanted
must have
proc
question
should have
wont have
bug
bugfix
discussion
documentation
feature
L
M
maintenance
postponed
refactoring
S
wontfix
XL
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: zdm/event-bus#31
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are times when it would be useful to actually rethrow an exception encountered during event dispatch, i.e. when testing.
Currently, the workarounds are to manually add the relevant object to the event listeners and an
ExceptionEvent
listener, or to throw an actualError
which is in most cases not present previously. Both approach, however, don't scale well as you have to write a lot of code or simply don't work when you cannot modify the corresponding code.Hence, it would be good if there was any way to throw an exception so hard that event bus has no choice but to rethrow it.