Optional handler
handler: (error: any, request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>) => any
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
Custom options for 'withErrorHandler()' function.