Wondering what’s next for npm?Check out our public roadmap! »

context-error

0.0.1 • Public • Published

Context-Error

Tell users what line really matters in the stack trace.

Usage

npm install context-error

var ContextError = require("context-error");
throw ContextError("You've Done Something Wrong", 2);

API

ContextError(message, stackLineNumber)

Returns an error ready to be thrown

  • message: the message you want the error to start with
  • stackLineNumber: The line number of the stack trace you think caused the error.

Keywords

none

Install

npm i context-error

DownloadsWeekly Downloads

6

Version

0.0.1

License

none

Last publish

Collaborators

  • avatar