Module: Middlewares/Error

Error middleware

If anything goes wrong, this middleware will know and take action accordingly.

Source:

Methods

(static) factory(context) → {Promise.<function()>}

Instanciate Error middleware

Parameters:
Name Type Description
context Object

Current context

Source:
Returns:

Error handler middleware function

Type
Promise.<function()>