@ash-framework/argument-error
![Dev Dependency Status](https://img.shields.io/david/dev/ash-framework/argument-error.svg)
Class for throwing descriptive user errors when bad arguments are passed to functions/classes
Install
- Install:
npm install --save @ash-framework/argument-error
- Module:
require('@ash-framework/argument-error')
Usage
const context = 'User'
const argumentName = 'name'
const additionalMessage = 'expected a "String" but a "Number" was given'
const error = new ArgumentError(context, argumentName, additionalMessage)
error.message
History
Discover the release history by heading on over to the releases page.
Backers
Maintainers
These amazing people are maintaining this project:
- Richard Walker digitalsadhu@gmail.com
These amazing people have contributed finances to this project:
Become a sponsor!
Contributors
These amazing people have contributed code to this project:
License
Unless stated otherwise all works are:
and licensed under: