brandErrorResponder(middleware: object,responder: IErrorResponder): void
Brands a middleware function with the application's resolved error responder, so the kernel can reach it at the pre-pipeline sites.
Called by @setu-ts/exceptions' errorHandler on the middleware it
returns; the responder is the same instance the middleware publishes into
ctx.state, built once at factory time.
responder: IErrorResponder
The resolved error responder