#[non_exhaustive]pub enum ApalacheError {
Execution {
exit_code: Option<i32>,
message: String,
},
NotFound(String),
Timeout {
duration: Duration,
},
}Expand description
Shared error for Apalache CLI execution failures.
Used by both TraceGenError and ValidationError to avoid duplication.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Execution
Apalache execution failed with a non-zero exit code.
NotFound(String)
Apalache binary not found or not executable.
Timeout
Apalache timed out after the specified duration.
Trait Implementations§
Source§impl Debug for ApalacheError
impl Debug for ApalacheError
Source§impl Display for ApalacheError
impl Display for ApalacheError
Source§impl Error for ApalacheError
impl Error for ApalacheError
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<ApalacheError> for TraceGenError
impl From<ApalacheError> for TraceGenError
Source§fn from(source: ApalacheError) -> Self
fn from(source: ApalacheError) -> Self
Converts to this type from the input type.
Source§impl From<ApalacheError> for ValidationError
impl From<ApalacheError> for ValidationError
Source§fn from(source: ApalacheError) -> Self
fn from(source: ApalacheError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApalacheError
impl RefUnwindSafe for ApalacheError
impl Send for ApalacheError
impl Sync for ApalacheError
impl Unpin for ApalacheError
impl UnsafeUnpin for ApalacheError
impl UnwindSafe for ApalacheError
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