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

    Class CeremonyJoinError

    Thrown when an unexpected error occurs during a Salt ceremony (e.g. the transaction signing or message signing ceremony). Known, typed errors (e.g. ApiError, ValidationError) are re-thrown as-is; this class is only used when the failure has no more specific type.

    import { SaltCeremonyError, PolicyBreachError } from 'salt-sdk';

    try {
    await tx.wait();
    } catch (err) {
    // Check the subclass first — PolicyBreachError is also a SaltCeremonyError
    if (err instanceof PolicyBreachError) {
    console.error('Blocked by policy:', err.rejectedPolicies.map((p) => p.type));
    } else if (err instanceof SaltCeremonyError) {
    console.error('Ceremony failed:', err.message, err.data);
    } else {
    throw err; // typed errors (ApiError, ValidationError, …) pass through as-is
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cause?: Error

    Which refusal the relay returned.

    data?: unknown

    Optional structured data attached to the failure (e.g. on-chain receipt).

    message: string
    name: string
    sessionId: string

    The session that refused the join.

    stack?: string