pub enum GoblinError {
Show 13 variants
ScriptNotFound {
name: String,
},
PlanNotFound {
name: String,
},
ScriptExecutionFailed {
script: String,
message: String,
},
ScriptTimeout {
script: String,
timeout: Duration,
},
TestFailed {
script: String,
},
ConfigError {
message: String,
},
IoError(Error),
TomlError(Error),
SerializationError(Error),
InvalidStepConfig {
message: String,
},
CircularDependency {
plan: String,
},
MissingDependency {
step: String,
dependency: String,
},
EngineError {
message: String,
},
}Variants§
ScriptNotFound
PlanNotFound
ScriptExecutionFailed
ScriptTimeout
TestFailed
ConfigError
IoError(Error)
TomlError(Error)
SerializationError(Error)
InvalidStepConfig
CircularDependency
MissingDependency
EngineError
Implementations§
Source§impl GoblinError
impl GoblinError
pub fn script_not_found(name: impl Into<String>) -> Self
pub fn plan_not_found(name: impl Into<String>) -> Self
pub fn script_execution_failed( script: impl Into<String>, message: impl Into<String>, ) -> Self
pub fn script_timeout(script: impl Into<String>, timeout: Duration) -> Self
pub fn test_failed(script: impl Into<String>) -> Self
pub fn config_error(message: impl Into<String>) -> Self
pub fn invalid_step_config(message: impl Into<String>) -> Self
pub fn circular_dependency(plan: impl Into<String>) -> Self
pub fn missing_dependency( step: impl Into<String>, dependency: impl Into<String>, ) -> Self
pub fn engine_error(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for GoblinError
impl Debug for GoblinError
Source§impl Display for GoblinError
impl Display for GoblinError
Source§impl Error for GoblinError
impl Error for GoblinError
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<Error> for GoblinError
impl From<Error> for GoblinError
Source§impl From<Error> for GoblinError
impl From<Error> for GoblinError
Auto Trait Implementations§
impl Freeze for GoblinError
impl !RefUnwindSafe for GoblinError
impl Send for GoblinError
impl Sync for GoblinError
impl Unpin for GoblinError
impl !UnwindSafe for GoblinError
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