pub enum Error {
Show 18 variants IO(String), InvalidUnicode(OsString), MissingTlaFileModuleName(String), FileNotFound(PathBuf), MissingJava, MinimumJavaVersion(usizeusize), 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(usizeusize)

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

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.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more