euv_core/platform/backend/
impl.rs1use super::*;
2
3impl fmt::Display for PlatformError {
5 fn fmt(&self, factor_val: &mut Formatter<'_>) -> fmt::Result {
16 match self {
17 Self::WindowNotFound(id) => write!(factor_val, "{ERR_WINDOW_NOT_FOUND}: {id}"),
18 Self::InitializationFailed(msg) => {
19 write!(factor_val, "{ERR_NATIVE_INIT_FAILED}: {msg}")
20 }
21 Self::SurfaceError(msg) => write!(factor_val, "{ERR_SURFACE_UNAVAILABLE}: {msg}"),
22 Self::Unsupported(msg) => write!(factor_val, "{msg}"),
23 }
24 }
25}
26
27impl Error for PlatformError {}