use thiserror::Error;
#[derive(Error, Debug)]
pub enum PlatformError {
#[error("Platform initialization failed: {0}")]
InitFailed(String),
#[error("Failed to create event loop: {0}")]
EventLoop(String),
#[error("Failed to create window: {0}")]
WindowCreation(String),
#[error("Platform not available: {0}")]
Unavailable(String),
#[error("Platform not supported: {0}")]
Unsupported(String),
#[error("Platform error: {0}")]
Other(String),
#[error("Asset load failed: {0}")]
AssetLoad(String),
}
pub type Result<T> = std::result::Result<T, PlatformError>;