Catalog npm
PACKAGE EXPLORERView in registry

2e

npm

two-types and chain errors for user and bug

bugchain errorserrorerror codeexceptionfaulttwo-types errorsuser
Versions collected1
Direct dependencies1From release 1.0.0
Last observed20 Oct, 19:12 UTC

README

Current package documentation

two-types and chain errors for user and bug in node

var e2 = require('2e'), UserError = e2.UserError, BugError = e2.BugError;
throw new UserError('xxx');
throw new UserError(400, 'xxx');
throw new UserError(err, 'xxx');//caused by another error `err`
throw new UserError(err, 400, 'xxx');

License :

Licensed under MIT

Copyright (c) 2015 kiliwalk

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.0Registry latest25 Sept 20151

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
kiliwalk/2e

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:12 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0875025a55ce947712ea7c720191217ef579e06900332a44eb831399b8833836