error-handler

Methods

(static) 404(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(static) development(err, req, res, next)

Source:
Parameters:
Name Type Description
err Error

Error object

req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(static) production(err, req, res, next)

Source:
Parameters:
Name Type Description
err Error

Error object

req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(inner) getErrorMessage(req, error)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
error Error

Error object.