#[non_exhaustive]pub enum CoreError {
Metadata(MetadataError),
Secret(SecretError),
Manifest(ManifestError),
Materializer(MaterializerError),
Runner(RunnerError),
Scanner(ScannerError),
TierMismatch {
id: VarId,
expected: VarKind,
found: VarKind,
},
}Expand description
Convenience aggregator for code that consumes multiple subsystems through a single result type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Metadata(MetadataError)
See MetadataError.
Secret(SecretError)
See SecretError.
Manifest(ManifestError)
See ManifestError.
Materializer(MaterializerError)
See MaterializerError.
Runner(RunnerError)
See RunnerError.
Scanner(ScannerError)
See ScannerError.
TierMismatch
A variable’s metadata advertises one VarKind but the value was
found in the opposite storage tier (or could not be found in the
expected tier while existing in the other).
This indicates corruption that bypassed the service layer’s normal routing rules. Higher layers should surface this loudly rather than treating it as “value missing”.
Trait Implementations§
Source§impl Error for CoreError
impl Error for CoreError
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<ManifestError> for CoreError
impl From<ManifestError> for CoreError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
Source§impl From<MaterializerError> for CoreError
impl From<MaterializerError> for CoreError
Source§fn from(source: MaterializerError) -> Self
fn from(source: MaterializerError) -> Self
Converts to this type from the input type.
Source§impl From<MetadataError> for CoreError
impl From<MetadataError> for CoreError
Source§fn from(source: MetadataError) -> Self
fn from(source: MetadataError) -> Self
Converts to this type from the input type.
Source§impl From<RunnerError> for CoreError
impl From<RunnerError> for CoreError
Source§fn from(source: RunnerError) -> Self
fn from(source: RunnerError) -> Self
Converts to this type from the input type.
Source§impl From<ScannerError> for CoreError
impl From<ScannerError> for CoreError
Source§fn from(source: ScannerError) -> Self
fn from(source: ScannerError) -> Self
Converts to this type from the input type.
Source§impl From<SecretError> for CoreError
impl From<SecretError> for CoreError
Source§fn from(source: SecretError) -> Self
fn from(source: SecretError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CoreError
impl !RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl !UnwindSafe for CoreError
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