Registers a listener called with every error thrown by a typed route, after
the response conversion.
Parameters
closure: (error:any)=>any
Returns void
Evidence
contracts/common.md#principled-implementation The listener is added to a set, so the same function registered twice is called once.
Evidence
contracts/common.md#clear-and-simple-design One set insertion.
Evidence
contracts/common.md#prohibited-implementation-shortcuts The listener only observes; the route notifies it after the current turn and ignores its errors.
Evidence
contracts/common.md#meaningful-documentation The comment states when listeners are called.
Evidence Exclude
contracts/portability.md#os-neutral-implementation Converter ordering and listener registration operate on JavaScript class and function identity, not native path or process identity.
Registers a listener called with every error thrown by a typed route, after the response conversion.