import { assert } from "../../../../shared/src/asserts.js";
class MutationAlreadyProcessedError extends Error {
  constructor(clientID, received, actual) {
    super(
      `Ignoring mutation from ${clientID} with ID ${received} as it was already processed. Expected: ${actual}`
    );
    assert(
      received < actual,
      () => `MutationAlreadyProcessedError: received (${received}) must be < actual (${actual})`
    );
  }
}
export {
  MutationAlreadyProcessedError
};
//# sourceMappingURL=error.js.map
