not-found-error

1.0.2 • Public • Published

NotFoundError

When you've lost something

Dependency Status devDependency Status

An exception for use in certain situations (e.g. to signal HTTP 404 error). Created because of a need for a cross-package standard exception.

Getting started

Install the package with this command:

npm install not-found-error --save

Usage

// Import ES6-style
import NotFoundError from 'not-found-error';
 
// Or CommonJS-style
const NotFoundError = require('not-found-error');
 
// Then just use like this:
throw new NotFoundError();

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style.

License

Copyright (c) 2016 Rafał Ruciński. Licensed under the WTFPL license.

/not-found-error/

    Package Sidebar

    Install

    npm i not-found-error

    Weekly Downloads

    0

    Version

    1.0.2

    License

    WTFPL

    Last publish

    Collaborators

    • fatfisz