mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
16 lines
521 B
TypeScript
16 lines
521 B
TypeScript
import type { ParseError } from "@homarr/common/server";
|
|
|
|
import type { IntegrationErrorData } from "../integration-error";
|
|
import { IntegrationError } from "../integration-error";
|
|
|
|
export class IntegrationParseError extends IntegrationError {
|
|
constructor(integration: IntegrationErrorData, { cause }: { cause: ParseError }) {
|
|
super(integration, "Failed to parse integration data", { cause });
|
|
this.name = IntegrationParseError.name;
|
|
}
|
|
|
|
get cause(): ParseError {
|
|
return super.cause as ParseError;
|
|
}
|
|
}
|