ErrorRules

new ErrorRules(node)

Constructs a error rules instance in the context of a AbstractNode

Parameters:
NameTypeDescription
nodeAbstractNode

Methods

internalError(error, request, response, next)

Formats the errors response according to the error object given

Parameters:
NameTypeDescription
errorerror | null
requestAbstractNode~request
responseAbstractNode~response
nextAbstractNode~next

methodNotFound(error, request, response, next)

Assumes if no error object exists, then there is simply no method defined

Parameters:
NameTypeDescription
errorerror | null
requestAbstractNode~request
responseAbstractNode~response
nextAbstractNode~next