gpui-component/crates/wef/src/error.rs
Sunli b70b229370
wef: Added a new WebView component named "Wef" based on CEF. (#877)
Wef is a Rust library for embedding WebView functionality using Chromium
Embedded Framework (CEF3) with offscreen rendering support.
2025-06-17 18:57:44 +08:00

15 lines
513 B
Rust

/// Error type.
#[derive(thiserror::Error, Debug, Clone)]
pub enum Error {
/// Failed to load the CEF framework.
#[cfg(target_os = "macos")]
#[error("failed to load CEF library")]
LoadLibrary,
/// Failed to create the sandbox context.
#[cfg(target_os = "macos")]
#[error("failed to create the sandbox context")]
SandboxContextCreate,
/// Failed to initialize the CEF browser process.
#[error("failed to initialize the CEF browser process")]
InitializeBrowserProcess,
}