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

    Variable failureCauseChainConst

    failureCauseChain: (error: unknown) => string

    A failure and its causes on one line, outermost first — TypeError: fetch failed — caused by ConnectTimeoutError: Connect Timeout Error (UND_ERR_CONNECT_TIMEOUT): a host logger prints an error as its message, and fetch failed on its own names nothing. Each link is its failureReason plus its string code when it carries one; a cycle is walked once; a thrown primitive is spelled by its value; a message spanning lines is folded onto the one line.

    Type Declaration

      • (error: unknown): string
      • Parameters

        • error: unknown

          What the call or cycle threw.

        Returns string

        The chain, joined by — caused by.