pub enum CadiError {
Show 19 variants
ChunkNotFound(String),
ManifestNotFound(String),
InvalidChunkId(String),
HashMismatch {
expected: String,
actual: String,
},
BuildFailed(String),
TransformFailed(String),
RegistryError(String),
Io(Error),
Serialization(String),
VerificationFailed(String),
SignatureInvalid(String),
TrustPolicyViolation(String),
DependencyResolution(String),
UnsupportedPlatform(String),
Configuration(String),
StorageError(String),
GraphQueryError(String),
AtomizerError(String),
RehydrationError(String),
}Expand description
Main error type for CADI operations
Variants§
ChunkNotFound(String)
ManifestNotFound(String)
InvalidChunkId(String)
HashMismatch
BuildFailed(String)
TransformFailed(String)
RegistryError(String)
Io(Error)
Serialization(String)
VerificationFailed(String)
SignatureInvalid(String)
TrustPolicyViolation(String)
DependencyResolution(String)
UnsupportedPlatform(String)
Configuration(String)
StorageError(String)
GraphQueryError(String)
AtomizerError(String)
RehydrationError(String)
Trait Implementations§
Source§impl Error for CadiError
impl Error for CadiError
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<LanguageError> for CadiError
Available on crate feature ast-parsing only.
impl From<LanguageError> for CadiError
Available on crate feature
ast-parsing only.Source§fn from(e: LanguageError) -> Self
fn from(e: LanguageError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for CadiError
Available on crate feature ast-parsing only.
impl From<QueryError> for CadiError
Available on crate feature
ast-parsing only.Source§fn from(e: QueryError) -> Self
fn from(e: QueryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CadiError
impl !RefUnwindSafe for CadiError
impl Send for CadiError
impl Sync for CadiError
impl Unpin for CadiError
impl !UnwindSafe for CadiError
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