CantonError
A decoded Canton Ledger API error.
Canton attaches structured google.rpc error details to failed RPCs: ErrorInfo carries the Canton error code (e.g. CONTRACT_NOT_FOUND, NOT_CONNECTED_TO_ANY_SYNCHRONIZER), RetryInfo marks retryable errors with a server-suggested backoff, and RequestInfo carries the correlation id to quote when filing support requests against a validator operator.
Constructors
Types
Properties
Correlation id for tracing the error on the participant, if present.
Human-readable description from the server.
Whether the failure is an authentication/authorization rejection — the candidates for a token refresh and reconnect. Live-verified against LocalNet: an expired token is rejected on admission with UNAUTHENTICATED and no RetryInfo; reading for a party this participant doesn't authorize is PERMISSION_DENIED. ACCESS_TOKEN_EXPIRED is Canton's error id for aborting an already-running stream whose token lapsed — enforcement varies by participant configuration (LocalNet 3.5.11 lets idle streams outlive their token; deployments with ongoing auth checks abort them).
Server-suggested minimum backoff before retrying, if provided.