Enum air::ExecutionError
source · pub enum ExecutionError {
Catchable(Rc<CatchableError>),
Uncatchable(UncatchableError),
}
Expand description
Errors arisen while executing AIR script. This enum is pub since it’s used in tests.
Variants§
Catchable(Rc<CatchableError>)
Uncatchable(UncatchableError)
Implementations§
source§impl ExecutionError
impl ExecutionError
pub fn is_catchable(&self) -> bool
pub fn is_match_or_mismatch(&self) -> bool
Trait Implementations§
source§impl Debug for ExecutionError
impl Debug for ExecutionError
source§impl Display for ExecutionError
impl Display for ExecutionError
source§impl Error for ExecutionError
impl Error for ExecutionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CatchableError> for ExecutionError
impl From<CatchableError> for ExecutionError
source§fn from(catchable: CatchableError) -> Self
fn from(catchable: CatchableError) -> Self
Converts to this type from the input type.
source§impl From<Rc<CatchableError>> for ExecutionError
impl From<Rc<CatchableError>> for ExecutionError
source§fn from(source: Rc<CatchableError>) -> Self
fn from(source: Rc<CatchableError>) -> Self
Converts to this type from the input type.
source§impl From<UncatchableError> for ExecutionError
impl From<UncatchableError> for ExecutionError
source§fn from(source: UncatchableError) -> Self
fn from(source: UncatchableError) -> Self
Converts to this type from the input type.