pub enum ErrorCode {
Show 22 variants
NotFound,
InvalidInput,
PermissionDenied,
StorageError,
NetworkError,
Timeout,
ResourceExhausted,
Internal,
NotImplemented,
ContextNotFound,
EvidenceNotFound,
GroundingFailed,
VersionMismatch,
ChecksumMismatch,
AlreadyExists,
InvalidState,
MemoryError,
VisionError,
CodebaseError,
IdentityError,
TimeError,
ContractError,
}Expand description
Standard error codes across ALL sisters.
Variants§
NotFound
Resource not found
InvalidInput
Invalid input provided
PermissionDenied
Operation not permitted
StorageError
Storage error (read/write failed)
NetworkError
Network error
Timeout
Operation timed out
ResourceExhausted
Resource limits exceeded
Internal
Internal error (bug)
NotImplemented
Not implemented yet
ContextNotFound
Context/session not found
EvidenceNotFound
Evidence not found
GroundingFailed
Grounding failed
VersionMismatch
Version mismatch
ChecksumMismatch
Checksum mismatch (corruption)
AlreadyExists
Already exists
InvalidState
Invalid state for operation
MemoryError
Memory-specific error
VisionError
Vision-specific error
CodebaseError
Codebase-specific error
IdentityError
Identity-specific error
TimeError
Time-specific error
ContractError
Contract-specific error
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub fn default_severity(&self) -> Severity
pub fn default_severity(&self) -> Severity
Get default severity for this error code
Sourcepub fn is_typically_recoverable(&self) -> bool
pub fn is_typically_recoverable(&self) -> bool
Check if this error is typically recoverable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more