// runtime/subsystems/bridge/bridge-errors.ts
var MissingTenantIdError = class extends Error {
  constructor(callSite) {
    super(
      `MissingTenantIdError: BridgeModule was configured with multiTenant=true but ${callSite} was called without tenantId (undefined). Pass an explicit tenantId, or pass null for cross-tenant work.`
    );
    this.callSite = callSite;
  }
  callSite;
  name = "MissingTenantIdError";
};
var BridgeReservedPoolsNotPolledError = class extends Error {
  constructor(missingPools) {
    super(
      `BridgeModule loaded but JobWorkerModule is not polling reserved pool '${missingPools[0]}'. Add ...BRIDGE_RESERVED_POOLS to your JobWorkerModule.forRoot({ pools }) configuration. Missing pools: ${missingPools.join(", ")}. (Bridge-fanout wrappers will sit pending forever without these pollers.)`
    );
    this.missingPools = missingPools;
  }
  missingPools;
  name = "BridgeReservedPoolsNotPolledError";
};
var UniqueConstraintError = class extends Error {
  constructor(constraint, eventId, triggerId) {
    super(
      `UniqueConstraintError: duplicate insert into bridge_delivery for (event_id='${eventId}', trigger_id='${triggerId}') \u2014 violates constraint '${constraint}'.`
    );
    this.constraint = constraint;
    this.eventId = eventId;
    this.triggerId = triggerId;
  }
  constraint;
  eventId;
  triggerId;
  name = "UniqueConstraintError";
};

export {
  MissingTenantIdError,
  BridgeReservedPoolsNotPolledError,
  UniqueConstraintError
};
//# sourceMappingURL=chunk-NXXDZ6ZF.js.map