src/lib/errors.js
function ErrorAbstract(msg, constructor) {
  this.message = msg;

  Error.call(this, this.message);

  /* istanbul ignore else */
  if (canCapture) {
    Error.captureStackTrace(this, constructor);
  } else if (canStack) {
    this.stack = new Error().stack;
  } else {
    this.stack = '';
  }
}
function ErrorAbstract(msg, constructor) {
  this.message = msg;

  Error.call(this, this.message);

  /* istanbul ignore else */
  if (canCapture) {
    Error.captureStackTrace(this, constructor);
  } else if (canStack) {
    this.stack = new Error().stack;
  } else {
    this.stack = '';
  }
}
function ErrorAbstract ( msg , constructor ) { this . message = msg ; Error . call ( this , this . message ) ; /* istanbul ignore else */ if ( canCapture ) { Error . captureStackTrace ( this , constructor ) ; } else if ( canStack ) { this . stack = new Error ( ) . stack ; } else { this . stack = '' ; } }
Abstract error object
@class ErrorAbstract
@access private
@param  {string}      [msg]         Error message
@param  {function}    constructor
Abstract error object