code, message, retryable, and optional retryAfter in seconds. Check code rather than relying on instanceof across scripts. Local utilities and cancellation may throw ordinary errors.
SDK 0.1.0 exports isArksatProviderError(error), a structural guard that also accepts valid errors from other bundles, realms and structured-clone transports. It checks the known code, message and retryable fields without requiring instanceof.