ReferenceRust referencesigil-sdk
sigil-sdk · error
Source declarations, signatures and documentation for error.
Source: sigil/node/sigil-sdk/src/error.rs. SHA-256: d5b20314c8ac4c5c1c1f46a7383474e5cec5f40c4da6f8b30ae14d37101e6f76.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
error::SdkError
Errors that can occur when using the Sigil SDK.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, thiserror::Error)]
pub enum SdkError {
/// Failed to connect to the Sigil node.
#[error("connection failed: {0}")]
ConnectionFailed(String),
/// The RPC node returned an error.
#[error("rpc error: {0}")]
RpcError(String),
/// Error while building a transaction.
#[error("transaction build error: {0}")]
TransactionBuildError(String),
/// DID resolution failed.
#[error("resolution failed: {0}")]
ResolutionFailed(String),
/// Authentication/authorization failure.
#[error("unauthorized: {0}")]
Unauthorized(String),
/// Request timed out.
#[error("request timed out")]
Timeout,
}Source line: 7.