Options
All
  • Public
  • Public/Protected
  • All
Menu

Custom options for 'withErrorHandler()' function.

Hierarchy

  • IWithErrorHandlerOptions

Index

Properties

Properties

Optional handler

handler: (error: any, request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>) => any

Custom error handler.

param

The error.

param

The request context.

param

The response context.

Type declaration

    • (error: any, request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>): any
    • Parameters

      • error: any
      • request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
      • response: Response<any, Record<string, any>>

      Returns any

Generated using TypeDoc