Ticket #823 (closed enhancement: fixed)
Protect against exceptions in dojo.event.topic.publish()
| Reported by: | jburke | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 0.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Right now if one of the subscribers to a topic throws an exception, the rest of the subscribers are not notified of the published message. It would be good to catch exceptions when notifying a subscriber so we can continue to notify other subscribers.
A nice option might be passing a exception handler function to dojo.topic.publish() so that if an exception happens, the handler is called and passed the subscriber that caused the exception, as well as the exception.
Change History
Note: See
TracTickets for help on using
tickets.