lib/common/errors.js
function BaseError(message, context) {
        this.message = message;
        this.name = this.constructor.name;
        this.context = context || {};

        Error.captureStackTrace(this, BaseError);
    }
function BaseError(message, context) {
        this.message = message;
        this.name = this.constructor.name;
        this.context = context || {};

        Error.captureStackTrace(this, BaseError);
    }
function BaseError ( message , context ) { this . message = message ; this . name = this . constructor . name ; this . context = context || { } ; Error . captureStackTrace ( this , BaseError ) ; }
Base error object which should be inherited, not used directly.
@constructor
@param {string} message Error Message
Base error object which should be inherited not used directly .