Skip to content

The open alternative to Salesforce, designed for AI.

509 B
Raw Blame
export class UpgradeUnavailableEntityWriteException extends Error {
  constructor(entityName: string, method: string) {
    super(
      `Cannot ${method} on ${entityName}: this entity is decorated with ` +
        `@WasIntroducedInUpgrade and the introducing command has not been ` +
        `applied at the current upgrade position. Run the upgrade further ` +
        `before writing to it, or move the write later in the sequence.`,
    );

    this.name = 'UpgradeUnavailableEntityWriteException';
  }
}