euv_core/platform/backend/enum.rs
1/// Unified error type returned by cross-platform OS window and rendering operations.
2#[derive(Clone, Debug, Eq, PartialEq)]
3pub enum PlatformError {
4 /// Referenced window handle does not exist or was closed.
5 WindowNotFound(u64),
6 /// Native OS API initialization or resource creation failed.
7 InitializationFailed(String),
8 /// Surface presentation or GPU submission failed.
9 SurfaceError(String),
10 /// Requested operation is unsupported on the active platform.
11 Unsupported(String),
12}