pub enum Error {
Show 14 variants
UnknownNetwork(String),
MissingEndpoint(String),
Denom(String),
Address(String),
InvalidMnemonic,
Derivation(String),
Pqc(String),
Http {
status: u16,
url: String,
body: String,
},
JsonRpc {
code: i64,
message: String,
},
Transport(String),
InvalidResponse(String),
Tx(QoreTxError),
SignBytes(String),
Removed(String),
}Expand description
Errors returned across the QoreChain SDK.
Variants§
UnknownNetwork(String)
The named network preset is unknown.
MissingEndpoint(String)
A required endpoint URL was not configured.
Denom(String)
A decimal/base amount or exponent was invalid.
Address(String)
A bech32 or hex address was invalid.
InvalidMnemonic
The BIP-39 mnemonic failed word-list and/or checksum validation.
Derivation(String)
HD derivation produced an invalid key (caller should try the next index).
Pqc(String)
A post-quantum (ML-DSA-87) operation failed.
Http
A non-2xx HTTP response was received.
Fields
JsonRpc
A JSON-RPC response carried an error member.
Transport(String)
A network/transport error occurred.
InvalidResponse(String)
A response body could not be parsed as expected JSON.
Tx(QoreTxError)
A broadcast/confirmed transaction returned a non-zero ABCI result code.
SignBytes(String)
The post-quantum sign-bytes version (v1 / v2) could not be chosen or
parsed. The message says what to pass instead (a REST URL, or an explicit
version). See crate::signbytes.
Removed(String)
An API was removed because it was unsafe. The message names the replacement and, where funds may be at risk, what the caller must do.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()