merchant errors for errorable
$ npm install --save errorable-merchant
var errorable = require('errorable');
var errorableMerchant = require('errorable-merchant');
var Generator = errorable.Generator;
var cnErrors = new Generator(errorableMerchant, 'zh-CN').errors;
var enUsErrors = new Generator(errorableMerchant, 'en-US').errors;
// MerchantIdErrorIdError
console.log(cnErrors.MerchantIdErrorIdError.message); // 商户ID错误!
console.log(enUsErrors.MerchantIdErrorIdError.message); // Merchant ID Error!
// MerchantNotLoggedIn
console.log(cnErrors.MerchantNotLoggedIn.message); // 商户未登录!
console.log(enUsErrors.MerchantNotLoggedIn.message); // Merchant Not Logged In!
// MerchantNotFound
console.log(cnErrors.MerchantNotFound.message); // 商户未找到!
console.log(enUsErrors.MerchantNotFound.message); // Merchant Not Found!
MIT © calidion