runmat_runtime/execution/errors.rs
1use thiserror::Error;
2
3#[derive(Clone, Debug, Error, PartialEq, Eq)]
4pub enum ExecutionServiceError {
5 #[error("execution handle belongs to a different scope")]
6 ForeignScope,
7 #[error("execution handle is unknown or stale")]
8 UnknownHandle,
9 #[error("execution was cancelled")]
10 Cancelled,
11 #[error("execution failed: {0}")]
12 Failed(String),
13 #[error("requested output count exceeds the execution contract")]
14 InvalidOutputContract,
15}