Add project command API
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user