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.

557 B
Raw Blame
import type { ResponseError } from "@homarr/common/server";

import type { IntegrationErrorData } from "../integration-error";
import { IntegrationError } from "../integration-error";

export class IntegrationResponseError extends IntegrationError {
  constructor(integration: IntegrationErrorData, { cause }: { cause: ResponseError }) {
    super(integration, "Response from integration did not indicate success", { cause });
    this.name = IntegrationResponseError.name;
  }

  get cause(): ResponseError {
    return super.cause as ResponseError;
  }
}