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.

556 B
Raw Blame
import type { ILogger } from "@homarr/core/infrastructure/logs";
import { createLogger } from "@homarr/core/infrastructure/logs";

import type { ParseError } from "../parse-error";

export abstract class ParseErrorHandler {
  protected logger: ILogger;
  constructor(type: string) {
    this.logger = createLogger({ module: "parseErrorHandler", type });
  }

  protected logParseError(metadata?: Record<string, unknown>) {
    this.logger.debug("Received parse error", metadata);
  }

  abstract handleParseError(error: unknown): ParseError | undefined;
}