Yeah, I'm not completely sold on anything but the functionality on the errorDialogFilter. What about this approach: the filter function gets an object of type
ErrorEvent
which has fields for
thread
and
error
, and also a function called
consume()
that you can call to signal that you have handled it. Would that be better?