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

@class Represents an error caused by a timeout expiring.
@constructor
@param {string=} message Human-readable description of the error.
Constructs a TimeoutError .