pub enum LxAppError {
Show 14 variants
WebView(String),
ResourceNotFound(String),
InvalidJsonFile(String),
InvalidParameter(String),
UnsupportedOperation(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
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
Trait Implementations§
Source§impl Clone for LxAppError
impl Clone for LxAppError
Source§fn clone(&self) -> LxAppError
fn clone(&self) -> LxAppError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for LxAppError
impl From<Error> for LxAppError
Source§fn from(error: Error) -> LxAppError
fn from(error: Error) -> LxAppError
Converts to this type from the input type.
Source§impl From<Error> for LxAppError
impl From<Error> for LxAppError
Source§fn from(error: Error) -> LxAppError
fn from(error: Error) -> LxAppError
Converts to this type from the input type.
Source§impl From<PlatformError> for LxAppError
impl From<PlatformError> for LxAppError
Source§fn from(error: PlatformError) -> LxAppError
fn from(error: PlatformError) -> LxAppError
Converts to this type from the input type.
Source§impl<T> From<SendError<T>> for LxAppError
impl<T> From<SendError<T>> for LxAppError
Source§fn from(error: SendError<T>) -> LxAppError
fn from(error: SendError<T>) -> LxAppError
Converts to this type from the input type.
Source§impl From<SettingsError> for LxAppError
impl From<SettingsError> for LxAppError
Source§fn from(error: SettingsError) -> LxAppError
fn from(error: SettingsError) -> LxAppError
Converts to this type from the input type.
Source§impl From<UpdateError> for LxAppError
impl From<UpdateError> for LxAppError
Source§fn from(error: UpdateError) -> LxAppError
fn from(error: UpdateError) -> LxAppError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LxAppError
impl RefUnwindSafe for LxAppError
impl Send for LxAppError
impl Sync for LxAppError
impl Unpin for LxAppError
impl UnsafeUnpin for LxAppError
impl UnwindSafe for LxAppError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more