@kagamidigital/salt-sdk-mirror
    Preparing search index...

    Class UnsupportedRuntime

    An error indicating that the runtime lacks a capability the SDK needs. Thrown by the Salt constructor, rather than partway through a ceremony.

    The message is written for display; read capability to handle a specific case. See RuntimeCapability for the current set.

    import { Salt, UnsupportedRuntime } from 'salt-sdk';

    try {
    const salt = new Salt({ environment: 'TESTNET' });
    } catch (error) {
    if (error instanceof UnsupportedRuntime && error.capability === 'webCrypto') {
    alert(error.message);
    } else {
    throw error;
    }
    }

    Hierarchy

    • Error
      • UnsupportedRuntime
    Index

    Constructors

    • Parameters

      • capability: "webCrypto"
      • OptionaloriginalError: Error

      Returns UnsupportedRuntime

    Properties

    capability: "webCrypto"

    Which runtime capability was missing.

    cause?: Error

    The underlying error that triggered this one, if any.

    message: string
    name: string
    stack?: string