1.3.3 • Published 6 years ago

@rill/error v1.3.3

Weekly downloads
15
License
MIT
Repository
github
Last release
6 years ago

This module is used internally by Rill but is extracted for convenience. Utility for generating HttpError's with messages, codes and meta data.

Installation

npm install @rill/error

Example

import HttpError, { assert, fail } from "@rill/error";

new HttpError(404); //-> [HttpError Not Found]

fail(404); //-> throws [HttpError Not Found]

assert(false, 404); //-> throws [HttpError Not Found]
assert(true, 404); //-> Does nothing

API

Contributions

Use npm test to run tests. Please feel free to create a PR!

1.3.3

6 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.1

8 years ago

0.1.0

9 years ago