@blockchaincommons/sskr - v1.0.0-beta.3
    Preparing search index...

    Type Alias SskrErrorDetails

    SskrErrorDetails:
        | { code: SskrPlainCode }
        | { code: "Shamir"; cause: ShamirError }
        | { code: "InvalidParameter"; parameter: SskrParameter; value: unknown }

    The structured payload of a SskrError, discriminated by code: e.details.code === "InvalidParameter" narrows to { parameter, value }.

    Type Declaration

    • { code: SskrPlainCode }
      • Readonlycode: SskrPlainCode

        One of the reference's fourteen codes; no payload.

    • { code: "Shamir"; cause: ShamirError }
      • Readonlycode: "Shamir"

        A Shamir failure surfaced through SSKR.

      • Readonlycause: ShamirError

        The ShamirError; also the error's cause.

    • { code: "InvalidParameter"; parameter: SskrParameter; value: unknown }
      • Readonlycode: "InvalidParameter"

        An argument outside its domain or of the wrong type (JS-only).

      • Readonlyparameter: SskrParameter

        The argument, e.g. "memberThreshold".

      • Readonlyvalue: unknown

        The value received, as passed.