1 | /// An error that may occur when creating objects using a global. |
2 | #[derive (Debug, thiserror::Error)] |
3 | pub enum GlobalError { |
4 | /// A compositor global was not available |
5 | #[error("the '{0}' global was not available" )] |
6 | MissingGlobal(&'static str), |
7 | |
8 | /// A compositor global was available, but did not support the given minimum version |
9 | #[error("the '{name}' global does not support interface version {required} (using version {available})" )] |
10 | InvalidVersion { name: &'static str, required: u32, available: u32 }, |
11 | } |
12 | |