pub enum LxAppError {
Show 15 variants
WebView(String),
ResourceNotFound(String),
InvalidJsonFile(String),
InvalidParameter(String),
UnsupportedOperation(String),
SurfaceConflict(String),
IoError(String),
Runtime(String),
ChannelError(String),
ResourceExhausted(String),
Bridge(String),
RongJS(String),
RongJSHost {
code: String,
message: String,
data: Option<Value>,
},
PluginNotConfigured(String),
PluginDownloadFailed(String),
}Variants§
WebView(String)
Error when performing web operations.
ResourceNotFound(String)
InvalidJsonFile(String)
InvalidParameter(String)
Error for invalid parameters
UnsupportedOperation(String)
Error for unsupported operations
SurfaceConflict(String)
The lxapp already owns a live presentation in another shell region.
IoError(String)
Error for I/O operations (file access, network, etc.)
Runtime(String)
Error for runtime operations
ChannelError(String)
Error channel operations
ResourceExhausted(String)
Error when resource is exhausted
Bridge(String)
Error when bridge error
RongJS(String)
Error for Rong runtime
RongJSHost
Structured Rong host error that preserves code/data metadata
PluginNotConfigured(String)
Error when plugin is not configured in lxapp.json
PluginDownloadFailed(String)
Error when plugin download fails
Implementations§
Source§impl LxAppError
impl LxAppError
Sourcepub fn requires_runtime_upgrade(detail: impl Into<String>) -> LxAppError
pub fn requires_runtime_upgrade(detail: impl Into<String>) -> LxAppError
This host’s runtime is below the package’s minRuntime.
pub fn is_requires_runtime_upgrade(&self) -> bool
Sourcepub fn detail(&self) -> Option<&str>
pub fn detail(&self) -> Option<&str>
The message without the variant’s prefix.
Every variant’s Display prepends or appends its own label, which reads
as noise once the caller has already framed the failure: nesting them
produces “Invalid parameter: iconPath: Invalid parameter: …”, and the
variants that append produce “directory traversal not allowed not
found”. Use this when embedding one error’s reason inside another’s
sentence.
Trait Implementations§
Source§impl Clone for LxAppError
impl Clone for LxAppError
Source§fn clone(&self) -> LxAppError
fn clone(&self) -> LxAppError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LxAppError
impl Debug for LxAppError
Source§impl Display for LxAppError
impl Display for LxAppError
Source§impl Error for LxAppError
impl Error for LxAppError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()