X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Ferrors.js;h=942ecc0f684656059f4e0fad66288db7c57f2647;hb=HEAD;hp=ed5b151461060215146bdcfdccacafce9fe76c1a;hpb=29837f0eeb9fcb4c53426e5bd89e9bdf7e9d961b;p=squeep-api-dingus diff --git a/lib/errors.js b/lib/errors.js index ed5b151..942ecc0 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -22,7 +22,23 @@ class ResponseError extends DingusError { } } +class RouterError extends DingusError { + constructor(...args) { + super(...args); + delete this.stack; + } +} + +class RouterNoPathError extends RouterError { +} + +class RouterNoMethodError extends RouterError { +} + module.exports = { DingusError, ResponseError, + RouterError, + RouterNoPathError, + RouterNoMethodError, };