error-codes
v0.0.2
Published
errors-codes ============
Downloads
13
Readme
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.