@arkade-os/sdk Documentation - v0.4.54
    Preparing search index...

    Function isArkError

    • Type guard for a structured ArkError, optionally narrowing to a specific name. Prefer it over comparing err.name literals.

      name accepts only cataloged ArkErrorName values; to branch on a name the catalog does not cover, either add it there or compare err.name after guarding with the one-argument form.

      Parameters

      Returns error is ArkError

      if (isArkError(maybeArkError(err), ArkErrorName.DIGEST_MISMATCH)) { ... }