pub enum AppError {
Io(IoError),
Format(FormatError),
Model(ModelError),
Codec(CodecError),
Integrity(IntegrityError),
ResourceLimit(ResourceLimitError),
Backend(BackendError),
Comparison(ComparisonError),
ExternalOracle(OracleError),
InternalInvariant(InternalInvariantError),
}Expand description
Top-level error type for all CLI operations.
Each variant carries structured context relevant to the error kind.
The Display implementation produces user-facing messages. The
AppError::kind() method returns a stable string identifier for
JSON serialization.
Variants§
Io(IoError)
I/O operation failed.
Format(FormatError)
Container or stream format violation.
Model(ModelError)
Model construction or validation error.
Codec(CodecError)
Codec operation failed.
Integrity(IntegrityError)
SHA-256 integrity check failure.
ResourceLimit(ResourceLimitError)
Resource limit exceeded.
Backend(BackendError)
Requested backend not available.
Comparison(ComparisonError)
Comparison mismatch.
ExternalOracle(OracleError)
External oracle failure.
InternalInvariant(InternalInvariantError)
Internal invariant violation (bug).
Implementations§
Trait Implementations§
Source§impl Error for AppError
impl Error for AppError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodeError> for AppError
impl From<DecodeError> for AppError
Source§fn from(_e: DecodeError) -> Self
fn from(_e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for AppError
impl From<EncodeError> for AppError
Source§fn from(_e: EncodeError) -> Self
fn from(_e: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<ModelError> for AppError
impl From<ModelError> for AppError
Source§fn from(e: ModelError) -> Self
fn from(e: ModelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppError
impl RefUnwindSafe for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl UnsafeUnpin for AppError
impl UnwindSafe for AppError
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