Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

521 B
Raw Blame
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;
  }
}