weave-agentfs · error
Source declarations, signatures and documentation for error.
Source: sigil/weave/local/agentfs/src/error.rs. SHA-256: d2046a61195ab653a02764d1263c054bdea066fe4516b9e4ff6f043c20670e35.
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::AgentFSError
Errors that can occur during AgentFS operations
#[derive(Debug, Error)]
pub enum AgentFSError {
#[error("File not found: {0}")]
FileNotFound(PathBuf),
#[error("Directory not found: {0}")]
DirectoryNotFound(PathBuf),
#[error("Path already exists: {0}")]
AlreadyExists(PathBuf),
#[error("Not a directory: {0}")]
NotADirectory(PathBuf),
#[error("Not a file: {0}")]
NotAFile(PathBuf),
#[error("Directory not empty: {0}")]
DirectoryNotEmpty(PathBuf),
#[error("Invalid path: {0}")]
InvalidPath(String),
#[error("Permission denied: agent {agent} cannot {permission} on {path}")]
PermissionDenied {
agent: String,
path: String,
permission: String,
},
#[error("Symlink loop detected at: {0}")]
SymlinkLoop(PathBuf),
#[error("Agent not authorized: {0}")]
AgentNotAuthorized(String),
#[error("Organization mismatch: expected {expected}, got {actual}")]
OrganizationMismatch { expected: String, actual: String },
#[error("Metadata error: {0}")]
MetadataError(String),
#[error("Sync error: {0}")]
SyncError(String),
#[error("Watch error: {0}")]
WatchError(String),
#[error("Atomic operation error: {0}")]
AtomicError(String),
#[error("Invalid symlink target: {0}")]
InvalidSymlink(String),
#[error("External symlink not allowed: {0}")]
ExternalSymlinkNotAllowed(PathBuf),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("Serialization error: {0}")]
Serialization(#[from] serde_json::Error),
#[error("Locus compatibility error: {0}")]
LocusCompat(#[from] LocusError),
#[error("Strand error: {0}")]
Strand(#[from] StrandError),
#[error("Walk directory error: {0}")]
WalkDir(#[from] walkdir::Error),
#[error("Notify error: {0}")]
Notify(#[from] notify::Error),
#[error("Identity error: {0}")]
IdentityError(String),
#[error("Sync in progress: {0}")]
SyncInProgress(PathBuf),
#[error("Not implemented: {0}")]
NotImplemented(&'static str),
}Source line: 10.
error::Result
Result type for AgentFS operations
pub type Result<T> = std::result::Result<T, AgentFSError>;Source line: 95.
error::AgentFSError::is_not_found
Check if this error represents a "not found" condition
pub fn is_not_found(&self) -> bool;Source line: 99.
error::AgentFSError::is_permission_denied
Check if this error represents a permission issue
pub fn is_permission_denied(&self) -> bool;Source line: 107.