0.0.9 • Published 9 years ago
@miez/xerrors v0.0.9
Miez - XErrors
A collection of custom errors
Getting started
The quickest way to get started using the helper classes is to install them via npm:
$ npm install @miez/xerrors --saveconst XErrorNotFound = require('@miez/xerros/XErrorNotFound');
function doSomething(data) {
if (!data) {
throw new XErrorNotFound();
}
}To start using an available helper class please visit the necessary folder for further instructions.
Available Error classes
XErrror- base error class that extendsErrorrest of the custom classes inherit from thisXErrorConflictXErrorForbiddenXErrorNotFoundXErrorUnauthorizedXErrorUnprocessableEntity
License
0.0.9
9 years ago