Allow to Override Exception Catching Mechanism #31
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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.