@claud/node-app-errors

0.2.1 • Public • Published

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();

Package Sidebar

Install

npm i @claud/node-app-errors

Weekly Downloads

3

Version

0.2.1

License

Apache-2.0

Unpacked Size

26.8 kB

Total Files

20

Last publish

Collaborators

  • claud