ILifecycleApi.onError(fn: (error: Error,ctx: IRequestContext) => void | Promise<void>): void
Runs when an error escapes middleware or a handler.
fn: (error: Error,ctx: IRequestContext) => void | Promise<void>
Hook body receiving the error and request context