Giter Club home page Giter Club logo

merchant's Introduction

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

merchant's People

Contributors

coolicer avatar yigemajia avatar

Watchers

Eric avatar James Cloos avatar  avatar

Forkers

coolicer

merchant's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.