database errors for errorable
$ npm install --save errorable-database
var errorable = require('errorable');
var errorableDatabase = require('errorable-database');
var Generator = errorable.Generator;
var cnErrors = new Generator(errorableDatabase, 'zh-CN').errors;
var enUsErrors = new Generator(errorableDatabase, 'en-US').errors;
//DatabaseError
console.log(cnErrors.DatabaseError.message); //数据库错误!
console.log(enUsErrors.DatabaseError.message); //Database Error!
MIT © calidion