Add project command API
This commit is contained in:
parent
1e4dd26bb8
commit
e4c7cf06e9
19 changed files with 781 additions and 21 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue