watchdog icon indicating copy to clipboard operation
watchdog copied to clipboard

Report-errors in emitter

Open earonesty opened this issue 3 years ago • 5 comments

Emitters can raise exceptions, for example if a handle becomes invalidated. Rather than handle it on a per-emitter basis, a catch-all can emit the underlying exception.

The caller can then choose to tear down an observer, or ignore the event as needed.

DRAFT: Does this look reasonable? Should I keep going (tests, use cases, docs).

earonesty avatar Dec 17 '20 10:12 earonesty