Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagogarbazza/node-business-error
Create an instance representing an error for a business validation
https://github.com/thiagogarbazza/node-business-error
ecmascript error javascript nodejs nodejs-modules
Last synced: about 6 hours ago
JSON representation
Create an instance representing an error for a business validation
- Host: GitHub
- URL: https://github.com/thiagogarbazza/node-business-error
- Owner: thiagogarbazza
- License: mit
- Created: 2016-09-12T16:33:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-03T20:07:54.000Z (about 8 years ago)
- Last Synced: 2024-10-07T09:18:34.169Z (about 1 month ago)
- Topics: ecmascript, error, javascript, nodejs, nodejs-modules
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-business-error
[![Build Status](https://travis-ci.org/thiagogarbazza/node-business-error.svg?branch=master)](https://travis-ci.org/thiagogarbazza/node-business-error)
[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/thiagogarbazza/node-business-error/)## Installation
### Using NPM
```sh
npm install --save business-error
```## Usage
```js
const {BusinessCase, BusinessError} = require('business-error');const businessCase = new BusinessCase('code', 'Any business validation message');
throw new BusinessError('a business error', businessCase);
```## License
The `node-business-error` project is under MIT license.