@reis/errors
v6.0.3
Published
A collection of common error classes
Downloads
157
Maintainers
Readme
@reis/errors
A collection of common error classes
Installation
You can install this package using yarn
or npm
.
#yarn
yarn add @reis/errors
#npm
npm install @reis/errors --save
Usage
//Load needed error classes
import {BadRequestError, NotFoundError} from '@reis/errors'
//Use in some function
export function someMiddleware() {
throw new BadRequestError('Bad things happened')
}
Issues & feature requests
Please report any bugs, issues, suggestions and feature requests in the errors issue tracker.
License
(MIT License)
Copyright 2016-2023, Adam Reis