function createTimeoutError$1(msg, timeout, file) {
    const err = new Error(msg);
    err.code = constants$4.TIMEOUT;
    err.timeout = timeout;
    err.file = file;
    return err;
  }
Creates an error object to be thrown when a runnable exceeds its allowed run time.
@static
@param {string} msg - Error message
@param {number} [timeout] - Timeout in ms
@param {string} [file] - File, if given
@returns {MochaTimeoutError}