mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-04 21:59:15 +01:00
16 lines
524 B
TypeScript
16 lines
524 B
TypeScript
import type { BoardSize, OldmarrConfig } from "@homarr/old-schema";
|
|
|
|
export class OldHomarrImportError extends Error {
|
|
constructor(oldConfig: OldmarrConfig, cause: unknown) {
|
|
super(`Failed to import old homarr configuration name=${oldConfig.configProperties.name}`, {
|
|
cause,
|
|
});
|
|
}
|
|
}
|
|
|
|
export class OldHomarrScreenSizeError extends Error {
|
|
constructor(type: "app" | "widget", id: string, screenSize: BoardSize) {
|
|
super(`Screen size not found for type=${type} id=${id} screenSize=${screenSize}`);
|
|
}
|
|
}
|