Add atomic circuit update commands
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
export class ProjectRevisionConflictError extends Error {
|
||||
constructor(
|
||||
readonly projectId: string,
|
||||
readonly expectedRevision: number,
|
||||
readonly actualRevision: number | null
|
||||
) {
|
||||
super(
|
||||
actualRevision === null
|
||||
? `Project ${projectId} does not exist.`
|
||||
: `Project ${projectId} is at revision ${actualRevision}, expected ${expectedRevision}.`
|
||||
);
|
||||
this.name = "ProjectRevisionConflictError";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user