Ticket #823 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

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

Changed 4 years ago by dylan

  • owner changed from anonymous to alex

Changed 4 years ago by alex

  • status changed from new to closed
  • resolution set to fixed

(In [5892]) fixes #823

Changed 3 years ago by anonymous

  • milestone deleted

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.