Enum modelator::Error[][src]

pub enum Error {
Show 16 variants IO(String), InvalidUnicode(OsString), MissingTlaFileModuleName(String), FileNotFound(PathBuf), MissingJava, MinimumJavaVersion(usize, usize), NoTestFound(String), NoTestTraceFound(PathBuf), InvalidTLCOutput(PathBuf), TLCFailure(String), ApalacheFailure(ApalacheError), InvalidApalacheCounterexample(String), Ureq(String), Nom(String), JsonParseError(String), UnrecognizedChecker(String),
}
Expand description

Set of possible errors that can occur when running modelator.

Variants

IO

An error that occurs when there’s an IO error.

Tuple Fields of IO

0: String
InvalidUnicode

An error that occurs when invalid unicode is encountered.

Tuple Fields of InvalidUnicode

0: OsString
MissingTlaFileModuleName

An error that occurs when a TLA file does not have a module name.

Tuple Fields of MissingTlaFileModuleName

0: String
FileNotFound

An error that occurs when a file is not found.

Tuple Fields of FileNotFound

0: PathBuf
MissingJava

An error that occurs when Java is not installed.

MinimumJavaVersion

An error that occurs when the version Java installed is too low.

Tuple Fields of MinimumJavaVersion

0: usize1: usize
NoTestFound

An error that occurs when a TLA+ file representing a set of tests contains no test.

Tuple Fields of NoTestFound

0: String
NoTestTraceFound

An error that occurs when the model checker isn’t able to generate a test trace.

Tuple Fields of NoTestTraceFound

0: PathBuf
InvalidTLCOutput

An error that occurs when the output of TLC is unexpected.

Tuple Fields of InvalidTLCOutput

0: PathBuf
TLCFailure

An error that occurs when the output of TLC returns an error.

Tuple Fields of TLCFailure

0: String
ApalacheFailure

An error that occurs when the output of Apalache returns an error.

Tuple Fields of ApalacheFailure

0: ApalacheError
InvalidApalacheCounterexample

An error that occurs when the counterexample produced by Apalache is unexpected.

Tuple Fields of InvalidApalacheCounterexample

0: String
Ureq

An error that occurs when using the ureq crate.

Tuple Fields of Ureq

0: String
Nom

An error that occurs when using the nom crate.

Tuple Fields of Nom

0: String
JsonParseError

An error that occurs when parsing a JSON value.

Tuple Fields of JsonParseError

0: String
UnrecognizedChecker

An error for unrecognized checker name.

Tuple Fields of UnrecognizedChecker

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.