Home Manual Reference Source

Function

Static Public Summary
public

middleware in charge of handling errors thrown on purpose, either through manually throwing ErrorApp, either through calling Route.throw.

Static Public

public handleError(opt: OptionErrors): * source

middleware in charge of handling errors thrown on purpose, either through manually throwing ErrorApp, either through calling Route.throw.

It will also make sure errors pertaining to models as well as unexpected error are given a clearer message.

Params:

NameTypeAttributeDescription
opt OptionErrors
  • optional
  • default: {}

option object to set which events should be logged

Return:

*