Trait conch_runtime::error::IsFatalError
[−]
[src]
pub trait IsFatalError: Error { fn is_fatal(&self) -> bool; }
Determines whether an error should be treated as "fatal".
Typically, "fatal" errors will abort any currently running commands (e.g. loops, compound commands, pipelines, etc.) all the way to a top level command, and consider it unsuccessful. On the other hand, non-fatal errors are usually swallowed by intermediate commands, and the execution is allowed to continue.
Ultimately it is up to the caller to decide how to handle fatal vs non-fatal errors.
Required Methods
Implementations on Foreign Types
impl IsFatalError for Void
[src]
Implementors
impl IsFatalError for ExpansionError
impl IsFatalError for RedirectionError
impl IsFatalError for CommandError
impl IsFatalError for RuntimeError
impl<R, V> IsFatalError for EvalRedirectOrCmdWordError<R, V> where
R: IsFatalError,
V: IsFatalError,impl<R, V> IsFatalError for EvalRedirectOrVarAssigError<R, V> where
R: IsFatalError,
V: IsFatalError,