🧯Error Types
Audience: Nexus SDK integrators (Rust).
Area: Error types.
Generated from: Nexus SDK public error API at tag v2.1.1 commit 08bfe76e726922ce512d623fbc1d2e1bd786bcd4; the generated inventory is preserved and 2.1.1 variants are source-verified.
Fallible SDK operations return the source-defined error types below. Branch on their generated variants rather than matching display text. Historical Protocol-resolution errors belong only to the pinned compatibility page.
2.1.1 read and transaction errors
NexusError::ObjectNotFound is a definitive absence at the requested RPC read boundary. Keep it distinct from an RPC or transport failure, which means the endpoint could not establish whether the object exists. NexusError::InvalidTransactionOutput means a typed object result or transaction output could not be trusted for state inference; it is distinct from an object that is missing because a transaction has not reached the required finality boundary.
Sui transaction-expiration compatibility
The 2.1.1 SDK decodes both Sui protocol-137 transaction-expiration wire forms: ValidDuring and Validity. Both forms carry optional minimum and maximum epoch or timestamp bounds, a chain digest, and a nonce; Validity additionally carries the optional AllowedProposers value. This is SDK decoding compatibility for transaction data and does not imply a deployment or network upgrade.
Source-derived public API inventory
SDK_BUILD_IDENTITY
pub const SDK_BUILD_IDENTITY: &str = env!("CARGO_PKG_VERSION");ClientUpgradeRequired
pub struct ClientUpgradeRequired {
/// Stable identity of the object that cannot be interpreted.
pub object_id: sui::types::Address,
/// Exact package witness observed on the object.
pub witness_type: Box<sui::types::StructTag>,
/// Exact inner layout when its metadata was available.
pub inner_type: Option<Box<sui::types::StructTag>>,
/// SDK build that performed the compatibility check.
pub sdk_build: &'static str,
}ClientUpgradeRequired::new
TransactionErrorState
TransactionError
TransactionError::submission_rejected
TransactionError::submission_unknown
TransactionError::confirmation_timed_out
confirmation_failed
confirmation_response_invalid
execution_failed
TransactionError::digest
TransactionError::state
TransactionError::response
TransactionError::submission_rejection
NexusError
NexusError::from_rpc
ErrorSource
ScheduleError
SchedulerError
Last updated

