pub enum BundleError {
ForbiddenColumn {
file: PathBuf,
column: String,
},
UnlistedFile {
file: PathBuf,
},
DuplicateFile {
name: String,
},
RowWidth {
file: PathBuf,
line: usize,
listed: usize,
found: usize,
},
NoHeader {
file: PathBuf,
},
NoAllowedColumn {
file: PathBuf,
},
Io {
file: PathBuf,
source: Error,
},
Encode {
source: Error,
},
}Expand description
Why a bundle call failed.
Variants§
ForbiddenColumn
A header column contained a forbidden token, so the call refused rather than copy it.
Fields
UnlistedFile
A table file in an input’s directory was not listed as an input, so the directory may hold identifying data and nothing was copied.
DuplicateFile
Two inputs would be written under the same name.
RowWidth
A row’s cell count does not match its header.
Fields
NoHeader
The file has no header row at all.
NoAllowedColumn
No column in the header belongs to the allow-list.
Io
Reading or writing a file failed.
Encode
The manifest could not be encoded, which cannot happen for a manifest built from ordinary strings.
Trait Implementations§
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
Source§impl Error for BundleError
impl Error for BundleError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for BundleError
impl !UnwindSafe for BundleError
impl Forget for BundleError
impl Freeze for BundleError
impl Move for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
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