JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 166
  • Score
    100M100P100Q74733F

Class extended from javascript Error with support for stack trace

Package Exports

  • base-error

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base-error) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Base Error

You are able simpler extend standard Error class. Your new object will be contain stack from original Error object and message.

Example

var BaseError = require('base-error');

var error = new BaseError('Message of error');

(error instanceof Error).should.equal(true);
(error instanceof BaseError).should.equal(true);