#[non_exhaustive]pub enum BrowserError {
Storage,
StorageConflict,
InvalidConfig,
Busy,
AuthorizationRequired,
ChainMismatch,
ContextChanged,
InvalidResult,
AccountUnavailable,
Provider(i64),
EntropyUnavailable,
Rpc(RpcError),
}Expand description
Sanitized browser failures. No provider strings, payloads, keys or URLs are retained.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Storage
IndexedDB open/transaction/schema/quota failure; no remote text is retained.
StorageConflict
A concurrent writer or stale tab changed the snapshot revision.
InvalidConfig
Configuration or endpoint does not match this adapter.
Busy
A configured concurrent-operation limit was reached.
AuthorizationRequired
Permission-sensitive RPC must use an explicit wallet API.
ChainMismatch
The injected wallet reports another network.
ContextChanged
Accounts, chain or connection changed while an operation was awaiting the wallet.
InvalidResult
Wallet result or message/address request has an invalid shape.
The specified account is not currently exposed by the wallet.
Provider(i64)
Numeric EIP-1193 failure, including 4001 user rejection and 4200 unsupported method.
Web Crypto entropy is unavailable or the request exceeds its 65,536-byte limit.
Rpc(RpcError)
Bounded RPC/transport error.
Trait Implementations§
Source§impl Debug for BrowserError
impl Debug for BrowserError
Source§impl Display for BrowserError
impl Display for BrowserError
Source§impl Error for BrowserError
impl Error for BrowserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()