chore: move page not found error out of constants (#9547)

This commit is contained in:
Saul-Mirone committed 2025-01-07 05:57:38 +00:00
1 parent df6a6ac392
commit 0d2eb64817
8 files changed
+26 -26

No files matched your search

-14
View File
@@ -1,7 +1,4 @@
// This file should has not side effect
// oxlint-disable-next-line
// @ts-ignore FIXME: typecheck error
import type { Workspace } from '@blocksuite/affine/store';
declare global {
// oxlint-disable-next-line no-var
@@ -90,17 +87,6 @@ export const Messages = {
};
};
export class PageNotFoundError extends TypeError {
readonly docCollection: Workspace;
readonly pageId: string;
constructor(docCollection: Workspace, pageId: string) {
super();
this.docCollection = docCollection;
this.pageId = pageId;
}
}
export class WorkspaceNotFoundError extends TypeError {
readonly workspaceId: string;