#[non_exhaustive]pub enum ErrorKind {
}Expand description
The class of a value-layer error.
Specification error classes map to TLC’s error codes (tlc2.output.EC), see
ErrorKind::tlc_code. ErrorKind::Interrupted is instead typed host
control flow; its numeric code accessor is not a TLC-error certificate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unsupported
A mathematical operation whose exact semantics are not implemented. The numeric code accessor is not a TLC error certificate for this kind.
Interrupted
Typed cooperative host interruption transported through a deferred evaluator provider. This is not a TLC error or a resource refusal.
Fields
DeferredError
An evaluator error with sealed native-cause provenance. Only its original evaluator can recover the error; message text is insufficient.
Incomparable
Two values that TLC refuses to compare or to test for equality
(Assert.fail in a compareTo/equals method, EC.GENERAL).
Membership
A membership test that TLC refuses (member methods, EC.GENERAL).
ModuleMembership
A membership test in an infinite built-in set refused by its module
(EC.TLC_MODULE_CHECK_MEMBER_OF).
ModuleCompare
A comparison refused by a built-in infinite set (EC.TLC_MODULE_COMPARE_VALUE).
Overflow
32-bit integer overflow (EC.TLC_MODULE_OVERFLOW).
IntegerTooBig
An integer literal above 2^31 - 1 (EC.TLC_INTEGER_TOO_BIG).
DivisionByZero
\div by zero (EC.TLC_MODULE_DIVISION_BY_ZERO).
NullPowerNull
0^0 (EC.TLC_MODULE_NULL_POWER_NULL).
Argument
An argument of the wrong kind or range (EC.TLC_MODULE_ARGUMENT_ERROR).
TooLarge
A set too large to be represented or enumerated (EC.GENERAL).
NotEnumerable
A set that cannot be enumerated because it is infinite or symbolic (EC.GENERAL).
Duplicate
A duplicate in a function domain or a record’s fields (EC.GENERAL).
NotFingerprintable
A value that cannot be fingerprinted, such as Nat (EC.GENERAL).
Json
A value that cannot be converted to TLC’s JSON form.
Codec
Bytes that are not a valid value encoding (crate::codec). This is an
internal error, never a property of the spec: dive only decodes what it encoded.
DiveLimit
A dive-only limit, such as a big-integer result too large to allocate. TLC has no counterpart (it would have overflowed long before).