MCPcopy Create free account
hub / github.com/fastify/fastify / asyncNodeJSErrorHandler

Function asyncNodeJSErrorHandler

test/types/instance.tst.ts:75–77  ·  view source on GitHub ↗
(error: NodeJS.ErrnoException)

Source from the content-addressed store, hash-verified

73server.setErrorHandler(nodeJSErrorHandler)
74
75function asyncNodeJSErrorHandler (error: NodeJS.ErrnoException) {
76 if (error) { throw error }
77}
78server.setErrorHandler(asyncNodeJSErrorHandler)
79
80class CustomError extends Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected