spatialrust_platform/
error.rs1pub type PlatformResult<T> = Result<T, PlatformError>;
5
6#[derive(Debug, thiserror::Error)]
8pub enum PlatformError {
9 #[error("invalid platform configuration: {0}")]
11 InvalidConfiguration(String),
12 #[error("performance budget `{budget_id}` exceeded: observed {observed} > ceiling {ceiling}")]
14 BudgetExceeded {
15 budget_id: String,
17 observed: u64,
19 ceiling: u64,
21 },
22 #[error("release gate denied: {reasons:?}")]
24 ReleaseGateDenied {
25 reasons: Vec<String>,
27 },
28}