pub enum ExecError {
Unreachable {
environment: String,
detail: String,
},
Timeout {
id: String,
millis: u64,
},
Exhausted {
id: String,
budget: u64,
},
Failed {
id: String,
message: String,
},
Protocol {
id: String,
detail: String,
},
NotRegistered(String),
Unbound(String),
NoSuchField {
value: String,
field: String,
},
Untyped(String),
UnknownSignature(QualifiedName),
TooDeep,
Overflow {
op: String,
},
}Expand description
Why an implementation did not produce an answer.
The distinction that matters here is between a proof being wrong and a proof being unreachable. An implementation that returns the wrong shape has failed to prove what it claimed, and trying a different one would be papering over that. An implementation that could not be started because the interpreter is not installed has not failed at all, and the dispatcher is free to look elsewhere.
Variants§
Unreachable
The environment could not be reached at all.
Timeout
The implementation did not answer in time.
Exhausted
The implementation used up the work it was allowed.
The sandbox working rather than the proof being wrong: a guest with no process to kill is stopped this way instead.
Failed
The implementation reported a failure of its own.
Protocol
The two sides did not agree on how to talk.
NotRegistered(String)
An implementation was registered without a body to run.
Unbound(String)
A body used a name nothing bound.
NoSuchField
A body read a field off something that has none.
Untyped(String)
A body did something its types said it would not.
The checker rules these out ahead of time, so reaching one means a body ran without being checked.
UnknownSignature(QualifiedName)
A body called a signature that is not in the workspace.
TooDeep
Following calls between bodies went too deep.
Overflow
Arithmetic produced a number the wire cannot carry.
A failure of the body, not of anywhere it ran: every proof given the same numbers would overflow the same way.
Implementations§
Trait Implementations§
Source§impl Error for ExecError
impl Error for ExecError
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
use the Display impl or to_string()