lib/abort-error.js
function AbortError(message) {
  // Like http://www.ecma-international.org/ecma-262/6.0/#sec-error-message
  if (!(this instanceof AbortError)) { return new AbortError(message); }
  Error.captureStackTrace(this, AbortError);
  if (message !== undefined) {
    Object.defineProperty(this, 'message', {
      value: String(message),
      configurable: true,
      writable: true
    });
  }
}
function AbortError(message) {
  // Like http://www.ecma-international.org/ecma-262/6.0/#sec-error-message
  if (!(this instanceof AbortError)) { return new AbortError(message); }
  Error.captureStackTrace(this, AbortError);
  if (message !== undefined) {
    Object.defineProperty(this, 'message', {
      value: String(message),
      configurable: true,
      writable: true
    });
  }
}
function AbortError ( message ) { // Like http://www.ecma-international.org/ecma-262/6.0/#sec-error-message if ( ! ( this instanceof AbortError ) ) { return new AbortError ( message ) ; } Error . captureStackTrace ( this , AbortError ) ; if ( message !== undefined ) { Object . defineProperty ( this , 'message' , { value : String ( message ) , configurable : true , writable : true } ) ; } }
Constructs an AbortError.

@class Represents an error caused by an action being aborted.
@constructor
@param {string=} message Human-readable description of the error.
Constructs an AbortError .