pub enum CaseLoadError {
Io {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: Error,
},
UnknownCase(String),
}Expand description
Errors returned by Case::load.
All variants carry the path the loader was operating on so the CLI can produce actionable error messages.
Variants§
Io
Filesystem-level failure reading the case.json file.
Parse
case.json was found but did not deserialise into a Case.
Fields
UnknownCase(String)
The provided name resolved to neither a file, a directory, nor
a known fixture under fixtures/cases/ or fixtures/cases/_negatives/.
Trait Implementations§
Source§impl Debug for CaseLoadError
impl Debug for CaseLoadError
Source§impl Display for CaseLoadError
impl Display for CaseLoadError
Source§impl Error for CaseLoadError
impl Error for CaseLoadError
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 Freeze for CaseLoadError
impl !RefUnwindSafe for CaseLoadError
impl Send for CaseLoadError
impl Sync for CaseLoadError
impl Unpin for CaseLoadError
impl UnsafeUnpin for CaseLoadError
impl !UnwindSafe for CaseLoadError
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