function createForbiddenExclusivityError$1(mocha) {
    var err = new Error(
      mocha.isWorker
        ? '`.only` is not supported in parallel mode'
        : '`.only` forbidden by --forbid-only'
    );
    err.code = constants$4.FORBIDDEN_EXCLUSIVITY;
    return err;
  }
Creates an error object to be thrown when `.only()` is used with
`--forbid-only`.
@static
@public
@param {Mocha} mocha - Mocha instance
@returns {Error} Error with code {@link constants.FORBIDDEN_EXCLUSIVITY}