pub enum SourceError {
Show 33 variants
InvalidRoot {
root: &'static str,
reason: &'static str,
},
ProjectOutsideWorkspace,
NonUtf8Path,
NonPortablePath {
path: String,
reason: PortablePathReason,
},
SensitivePath {
path: String,
},
SensitiveContent {
path: String,
},
ReparsePoint {
path: String,
},
AlternateDataStream {
path: String,
},
StreamInspectionUnavailable {
path: String,
},
MissingInput {
path: String,
},
Symlink {
path: String,
},
HardLink {
path: String,
links: u64,
},
HardLinkInspectionUnavailable {
path: String,
},
UnsupportedFileType {
path: String,
},
CaseCollision {
first: String,
second: String,
},
LimitExceeded {
kind: SourceLimitKind,
path: Option<String>,
maximum: u64,
actual: u64,
},
UnsupportedDepthLimit {
requested: usize,
maximum: usize,
},
UnsupportedTraversalLimit {
requested: usize,
maximum: usize,
},
DuplicateExecutableMode {
path: String,
},
ExecutableModePathNotSelected {
path: String,
},
InvalidIgnoreRule {
file: String,
line: usize,
reason: IgnoreRuleReason,
},
ChangedDuringRead {
path: String,
},
InvalidManifest {
reason: &'static str,
},
ManifestMismatch,
OutputExists {
path: String,
},
DestinationExists {
path: String,
},
InvalidDestination {
reason: &'static str,
},
InvalidArchive {
reason: String,
},
InvalidGitSnapshot {
reason: String,
},
ArchiveIntegrityMismatch {
reason: &'static str,
},
CleanupFailed {
path: String,
original: String,
source: Error,
},
Zip {
operation: &'static str,
message: String,
},
Io {
operation: &'static str,
path: String,
source: Error,
},
}Expand description
Source planning or verification failure.
Variants§
InvalidRoot
A configured root did not resolve to a real directory.
Fields
ProjectOutsideWorkspace
The project resolved outside the configured workspace.
NonUtf8Path
A filesystem path could not be represented as UTF-8.
NonPortablePath
A relative bundle path was not cross-platform portable.
SensitivePath
A built-in sensitive path was explicitly selected or found in a bundle.
SensitiveContent
A selected regular file contained a conservative credential signature.
ReparsePoint
A Windows reparse point or junction was found in selected source.
AlternateDataStream
A selected Windows regular file has a named alternate data stream.
A selected Windows regular file’s streams could not be inspected safely.
MissingInput
A selected path did not exist.
Symlink
A symbolic link was found in selected source.
HardLink
A regular file had more than one filesystem link.
Link-count inspection is unavailable on this platform or filesystem.
UnsupportedFileType
A socket, device, FIFO, or other unsupported file type was selected.
CaseCollision
Two paths would alias on a case-insensitive filesystem.
LimitExceeded
A resource bound was exceeded.
Fields
kind: SourceLimitKindBound that was exceeded.
UnsupportedDepthLimit
The configured depth exceeds the defensive ceiling.
UnsupportedTraversalLimit
The requested traversal-entry limit exceeds the defensive ceiling.
DuplicateExecutableMode
Portable executable metadata repeated the same path.
ExecutableModePathNotSelected
Portable executable metadata named a file outside the final selection.
InvalidIgnoreRule
A .ferryignore line was outside the documented safe subset.
Fields
reason: IgnoreRuleReasonRejection reason.
ChangedDuringRead
A source file changed while it was being read.
InvalidManifest
A manifest was structurally invalid or non-canonical.
ManifestMismatch
Current source or materialized contents did not exactly match a manifest.
OutputExists
An output path already exists and was not modified.
DestinationExists
An extraction destination already exists and was not modified.
InvalidDestination
An archive or extraction destination path was unusable.
InvalidArchive
ZIP structure or metadata violated the source transport contract.
InvalidGitSnapshot
Git snapshot fields or cross-document bindings were invalid.
ArchiveIntegrityMismatch
ZIP bytes did not match their transport descriptor.
CleanupFailed
Cleanup of an operation-created partial path failed.
Fields
Zip
ZIP processing failed.
Fields
Io
A filesystem operation failed.
Trait Implementations§
Source§impl Debug for SourceError
impl Debug for SourceError
Source§impl Display for SourceError
impl Display for SourceError
Source§impl Error for SourceError
impl Error for SourceError
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()