Newfoundland Pitbull Mix

    base-error

    2.0.5 • Public • Published

    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);

    Keywords

    Install

    npm i base-error

    DownloadsWeekly Downloads

    1,181

    Version

    2.0.5

    License

    none

    Last publish

    Collaborators

    • zlatkofedor