0.0.2 • Published 11 years ago

error-codes v0.0.2

Weekly downloads
7
License
MIT
Repository
-
Last release
11 years ago

errors-codes

Example:

var errors = require('error-codes');

errors.define('Service.Module1.XDD', 'XDD');
errors.define('Service.Module2.GG', '囧');

console.error(errors.generate('Service.Module1.XDD'));

errors.getAllErrors(); // [{key: '...', code: '...', message: '...'}, ...]

License

(The MIT License)

Copyright (c) 2013 YouMeb and contributors.

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago