ReferenceRust referencearise-sigil
arise-sigil · error
Source declarations, signatures and documentation for error.
Source: sigil/node/../arise-bridge/arise-sigil/src/error.rs. SHA-256: bfd98b2e1b0f202b53df05ff1b5e6a8d39495d9cb5df8c6f9a82b9cfc6462e93.
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::AriseError
Errors that can occur during ARISE marketplace operations.
#[derive(Debug, Error)]
pub enum AriseError {
/// The referenced provider DID was not found.
#[error("provider not found: {0}")]
ProviderNotFound(String),
/// The provider's stake is below the required minimum.
#[error(
"insufficient stake: required {required} micro-MINT, available {available} micro-MINT"
)]
InsufficientStake {
/// The minimum stake required.
required: u64,
/// The stake amount available.
available: u64,
},
/// The compute receipt is structurally invalid or fails verification.
#[error("invalid receipt: {0}")]
InvalidReceipt(String),
/// The referenced challenge was not found.
#[error("challenge not found: {0}")]
ChallengeNotFound(String),
/// The attempted state transition is not valid for the current challenge state.
#[error("invalid challenge transition: {0}")]
InvalidChallengeTransition(String),
/// An error occurred during escrow operations.
#[error("escrow error: {0}")]
EscrowError(String),
/// An error occurred during on-chain settlement.
#[error("settlement error: {0}")]
SettlementError(String),
/// The caller is not authorized for the requested operation.
#[error("not authorized: {0}")]
NotAuthorized(String),
}Source line: 7.