Class: ErrorRules

ErrorRules


new ErrorRules(node)

Constructs a error rules instance in the context of a AbstractNode
Parameters:
Name Type Description
node AbstractNode
Source:

Methods


internalError(error, request, response, next)

Formats the errors response according to the error object given
Parameters:
Name Type Description
error error | null
request AbstractNode~request
response AbstractNode~response
next AbstractNode~next
Source:

methodNotFound(error, request, response, next)

Assumes if no error object exists, then there is simply no method defined
Parameters:
Name Type Description
error error | null
request AbstractNode~request
response AbstractNode~response
next AbstractNode~next
Source: