MELCloud & MELCloud Home API for Node.js - v60.5.0
    Preparing search index...

    Variable logFailureConst

    logFailure: (logger: Logger, label: string, error: unknown) => void

    Write a failure to the log the way a diagnostic report can read it: a known failure as ONE line — the label, then its failureCauseChain — with no stack, since a transient's ten transport frames read as a crash in a report; anything else as the label followed by the error object, so a programming error keeps the stack that locates it.

    Type Declaration

      • (logger: Logger, label: string, error: unknown): void
      • Parameters

        • logger: Logger

          The sink.

        • label: string

          What failed, ending in a colon (Failed to fetch devices:).

        • error: unknown

          What it threw.

        Returns void