Ticket #823 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 years ago

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

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

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

comment:1 Changed 6 years ago by dylan

  • Owner changed from anonymous to alex

comment:2 Changed 6 years ago by alex

  • Status changed from new to closed
  • Resolution set to fixed

(In [5892]) fixes #823

comment:3 Changed 5 years ago by anonymous

  • Milestone 0.4 deleted

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.