forked from jappel/leistungsbilanz-ts
Restore named project snapshots
This commit is contained in:
parent
7c670fece3
commit
384a5769ab
25 changed files with 1315 additions and 206 deletions
10
src/domain/errors/project-state-conflict.error.ts
Normal file
10
src/domain/errors/project-state-conflict.error.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export class ProjectStateConflictError extends Error {
|
||||
constructor(
|
||||
public readonly projectId: string,
|
||||
public readonly expectedSha256: string,
|
||||
public readonly actualSha256: string
|
||||
) {
|
||||
super(`Project ${projectId} changed outside the prepared restore state.`);
|
||||
this.name = "ProjectStateConflictError";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue