Files
leistungsbilanz-ts/src/domain/errors/project-history-operation-unavailable.error.ts
T
2026-07-23 21:56:13 +02:00

14 lines
406 B
TypeScript

import type { ProjectHistoryDirection } from "../ports/project-history.store.js";
export class ProjectHistoryOperationUnavailableError extends Error {
constructor(
readonly projectId: string,
readonly direction: ProjectHistoryDirection
) {
super(
`Project ${projectId} has no ${direction} operation available.`
);
this.name = "ProjectHistoryOperationUnavailableError";
}
}