routee_compass_core/model/constraint/
error.rs1use crate::{algorithm::search::SearchTreeError, model::state::StateModelError};
2
3#[derive(thiserror::Error, Debug)]
4pub enum ConstraintModelError {
5 #[error("failure building constraint model: {0}")]
6 BuildError(String),
7 #[error("{0}")]
8 ConstraintModelError(String),
9 #[error("failure running constraint model due to search tree: {source}")]
10 SearchTreeError {
11 #[from]
12 source: SearchTreeError,
13 },
14 #[error("failure running constraint model due to state: {source}")]
15 StateModelError {
16 #[from]
17 source: StateModelError,
18 },
19}