Rust referenceweave-nexus
weave-nexus · error
Source declarations, signatures and documentation for error.
Source: sigil/weave/models/nexus/src/error.rs. SHA-256: 103e7bc86252881020a786cbe3eaee045b06f6ab293d70fc9ba4e706323deef1.
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::NexusError
Errors that can occur in nexus operations
#[derive(Debug, Error)]
pub enum NexusError {
#[error("Unauthorized organization: {0}")]
UnauthorizedOrganization(String),
#[error("Agent not found: {0}")]
AgentNotFound(String),
#[error("Strand not found for agent: {0}")]
StrandNotFound(String),
#[error("Invalid view state: {0}")]
InvalidViewState(String),
#[error("Governance policy violation: {0}")]
GovernanceViolation(String),
#[error("View generation failed: {0}")]
ViewGenerationFailed(String),
#[error("Synchronization error: {0}")]
SyncError(String),
#[error("Ordering strategy error: {0}")]
OrderingError(String),
#[error("Strand error: {0}")]
Strand(#[from] strand::StrandError),
#[error("Serialization error: {0}")]
Serialization(#[from] bincode::Error),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Governance consensus failed: {obtained}/{required} approvals")]
ConsensusFailed { obtained: usize, required: usize },
}Source line: 8.
error::Result
Convenience type alias for Results
pub type Result<T> = std::result::Result<T, NexusError>;Source line: 47.