Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yorkie/errno-extend

Error extension for ECMAScript
https://github.com/yorkie/errno-extend

Last synced: 5 days ago
JSON representation

Error extension for ECMAScript

Awesome Lists containing this project

README

        

errno-extend
================
Error extension for v8

### Installation
```sh
$ npm install errno-extent
```

### API

* `ArgumentsError()`: An error that occurred by wrong arguments of a caller.

* `AvoidAcessError()`: An error that user-land access the unaccessable callee.

* `UnknowMethodError(name)`: Commonly used in HTTP handler.

* `NotFoundError(name)`: Not found for `name` specified.

* `RequiredError(name)`: Requirements missed error, name might be array or object, sure could be a string.

NB: TO BE COUTINUE... :)

### License
MIT