Enum testdrive::error::Error [−][src]
pub enum Error {
Input {
err: InputError,
details: Option<InputDetails>,
},
General {
ctx: String,
causes: Vec<Box<dyn StdError + Send + Sync>>,
hints: Vec<String>,
},
}
Expand description
A testdrive error.
Variants
Input
An error in parsing a testdrive script.
General
Fields
ctx: String
The component in which the error occurred.
Other errors.
Implementations
Create a new error with just the specified message
Create a new error with the specified message and cause
Prints the error to stderr
, with coloring if the terminal supports it.
pub(crate) fn with_input_details(
self,
filename: &Path,
contents: &str,
positioner: &dyn Positioner
) -> Self
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more