Claud / node-app-errors

Custome errors for your node app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custome errors for your node app.

const AppErrors = require('@claud/node-app-errors');

Error.prototype.toJSON = function() {
    return AppErrors.BaseError.errorToJson(this);
};

throw new AppErrors.HttpError.Forbidden();

About

Custome errors for your node app.

License:Apache License 2.0


Languages

Language:JavaScript 100.0%