errorable-database
v0.0.2
Published
database errors for errorable
Downloads
5
Readme
errorable-database
database errors for errorable
Installation
$ npm install --save errorable-database
Usage
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!
License
MIT © calidion