error-handler

Methods

(static) 404(req, res, next)

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

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

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

Source:
Parameters:
Name Type Description
err Error

Error object

req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

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

Source:
Parameters:
Name Type Description
err Error

Error object

req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

(inner) getErrorMessage(req, error)

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

HTTP request

error Error

Error object.