Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#823 closed enhancement (fixed)

Protect against exceptions in dojo.event.topic.publish()

Reported by: James Burke Owned by: alex
Priority: high Milestone:
Component: General Version: 0.2
Keywords: Cc:
Blocked By: Blocking:


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 (3)

comment:1 Changed 15 years ago by dylan

Owner: changed from anonymous to alex

comment:2 Changed 15 years ago by alex

Resolution: fixed
Status: newclosed

(In [5892]) fixes #823

comment:3 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.