pub enum ValidationError {
InvalidCommand(String),
ScriptNotFound(PathBuf),
ScriptNotExecutable(PathBuf),
TimeoutTooLarge(u64, u64),
InvalidWorkingDir(PathBuf),
WorkingDirNotFound(PathBuf),
MissingField(String),
InvalidPlan(String),
EmptyCommand,
InvalidDependencyGraph(String),
ProgramNotFound(String),
}Expand description
Validation-specific errors
Variants§
InvalidCommand(String)
Invalid command format
ScriptNotFound(PathBuf)
Script file not found
ScriptNotExecutable(PathBuf)
Script file not executable
TimeoutTooLarge(u64, u64)
Timeout exceeds maximum
InvalidWorkingDir(PathBuf)
Invalid working directory
WorkingDirNotFound(PathBuf)
Working directory does not exist
MissingField(String)
Missing required field
InvalidPlan(String)
Invalid execution plan
EmptyCommand
Empty command
InvalidDependencyGraph(String)
Invalid dependency graph
ProgramNotFound(String)
Program not found in PATH
Implementations§
Source§impl ValidationError
impl ValidationError
Sourcepub fn invalid_command<S: Into<String>>(msg: S) -> Self
pub fn invalid_command<S: Into<String>>(msg: S) -> Self
Create InvalidCommand error with message
Sourcepub fn missing_field<S: Into<String>>(field: S) -> Self
pub fn missing_field<S: Into<String>>(field: S) -> Self
Create MissingField error
Sourcepub fn invalid_plan<S: Into<String>>(msg: S) -> Self
pub fn invalid_plan<S: Into<String>>(msg: S) -> Self
Create InvalidPlan error with message
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · 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()
Source§impl From<ValidationError> for ExecutionError
impl From<ValidationError> for ExecutionError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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