Skip to content

Errorable/merchant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

errorable-merchant NPM version Build Status Dependency Status Coverage percentage

merchant errors for errorable

Installation

$ npm install --save errorable-merchant

Usage

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!

License

MIT © calidion

About

errors for merchant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published