pub enum ExtractionError {
SourcePath,
Input(ArtifactError),
Tool(ToolError),
SourceInspection {
source: ArtifactError,
evidence: Box<ExecutionEvidence>,
},
SourceChanged {
before: ArtifactIdentity,
after: ArtifactIdentity,
evidence: Box<ExecutionEvidence>,
},
Normalize {
source: NormalizationError,
evidence: Box<ExecutionEvidence>,
},
}Expand description
A Candid extraction failed, retaining process bytes where invocation occurred.
Variants§
SourcePath
The source path was relative; no tool was invoked.
Input(ArtifactError)
Source inspection failed before invocation.
Tool(ToolError)
Tool verification or execution failed; execution failures retain evidence.
SourceInspection
Source could not be re-inspected after successful execution.
Fields
source: ArtifactErrorInspection failure.
evidence: Box<ExecutionEvidence>Bounded successful process output.
SourceChanged
Source bytes changed between preflight and post-extraction observation.
Fields
before: ArtifactIdentityIdentity observed before invocation.
after: ArtifactIdentityIdentity observed after invocation.
evidence: Box<ExecutionEvidence>Bounded process output that must not be published as valid extraction.
Normalize
Successful output could not be normalized under the selected bound.
Fields
source: NormalizationErrorNormalization failure.
evidence: Box<ExecutionEvidence>Exact bounded process output, including invalid UTF-8 when present.
Trait Implementations§
Source§impl Debug for ExtractionError
impl Debug for ExtractionError
Source§impl Display for ExtractionError
impl Display for ExtractionError
Source§impl Error for ExtractionError
impl Error for ExtractionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()