pub enum Error {
Show 18 variants
IO(String),
InvalidUnicode(OsString),
MissingTlaFileModuleName(String),
FileNotFound(PathBuf),
MissingJava,
MinimumJavaVersion(usize, usize),
NoTestFound(String),
TlaOperatorNameParseError(String),
NoTestTraceFound(PathBuf),
InvalidTLCOutput(PathBuf),
TLCFailure(String),
ApalacheFailure(ApalacheError),
InvalidApalacheCounterexample(String),
Ureq(String),
Nom(String),
JsonParseError(String),
UnrecognizedChecker(String),
UnsupportedOutputFormat(String),
}Expand description
Set of possible errors that can occur when running modelator.
Variants§
IO(String)
An error that occurs when there’s an IO error.
InvalidUnicode(OsString)
An error that occurs when invalid unicode is encountered.
MissingTlaFileModuleName(String)
An error that occurs when a TLA file does not have a module name.
FileNotFound(PathBuf)
An error that occurs when a file is not found.
MissingJava
An error that occurs when Java is not installed.
MinimumJavaVersion(usize, usize)
An error that occurs when the version Java installed is too low.
NoTestFound(String)
An error that occurs when a TLA+ file representing a set of tests contains no test.
TlaOperatorNameParseError(String)
Tla operator name parse error
NoTestTraceFound(PathBuf)
An error that occurs when the model checker isn’t able to generate a test trace.
InvalidTLCOutput(PathBuf)
An error that occurs when the output of TLC is unexpected.
TLCFailure(String)
An error that occurs when the output of TLC returns an error.
ApalacheFailure(ApalacheError)
An error that occurs when the output of Apalache returns an error.
InvalidApalacheCounterexample(String)
An error that occurs when the counterexample produced by Apalache is unexpected.
Ureq(String)
An error that occurs when using the ureq crate.
Nom(String)
An error that occurs when using the nom crate.
JsonParseError(String)
An error that occurs when parsing a JSON value.
UnrecognizedChecker(String)
An error for unrecognized checker name.
UnsupportedOutputFormat(String)
An error for unsupported output format.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more