#[non_exhaustive]pub enum Error {
Show 33 variants
Runtime(Error),
WindowLabelAlreadyExists(String),
WebviewLabelAlreadyExists(String),
AssetNotFound(String),
Json(Error),
Io(Error),
InvalidIcon(Error),
InvalidArgs(&'static str, &'static str, Error),
Setup(SetupError),
PluginInitialization(String, String),
InvalidUrl(ParseError),
JoinError(JoinError),
InvalidWebviewUrl(&'static str),
GlobPattern(PatternError),
PngDecode(DecodingError),
InvalidWindowHandle,
FailedToReceiveMessage,
Menu(Error),
BadMenuIcon(BadIcon),
Tray(Error),
BadTrayIcon(BadIcon),
NoParent,
NoExtension,
NoBasename,
CurrentDir(Error),
UnknownPath,
WindowNotFound,
BadResourceId(ResourceId),
Anyhow(Error),
WebviewNotFound,
UnstableFeatureNotSupported,
CannotDeserializeScope(Box<dyn Error + Send + Sync>),
RawHandleError(HandleError),
}
Expand description
Runtime errors that can happen inside a Tauri application.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Runtime(Error)
Runtime error.
WindowLabelAlreadyExists(String)
Window label must be unique.
WebviewLabelAlreadyExists(String)
Webview label must be unique.
AssetNotFound(String)
Embedded asset not found.
Json(Error)
Failed to serialize/deserialize.
Io(Error)
IO error.
InvalidIcon(Error)
Failed to load window icon.
InvalidArgs(&'static str, &'static str, Error)
Invalid args when running a command.
Setup(SetupError)
Encountered an error in the setup hook,
PluginInitialization(String, String)
Error initializing plugin.
InvalidUrl(ParseError)
A part of the URL is malformed or invalid. This may occur when parsing and combining user-provided URLs and paths.
JoinError(JoinError)
Task join error.
InvalidWebviewUrl(&'static str)
An invalid window URL was provided. Includes details about the error.
GlobPattern(PatternError)
Invalid glob pattern.
PngDecode(DecodingError)
Error decoding PNG image.
InvalidWindowHandle
The Window’s raw handle is invalid for the platform.
FailedToReceiveMessage
Failed to receive message .
Menu(Error)
Menu error.
BadMenuIcon(BadIcon)
Bad menu icon error.
Tray(Error)
desktop
and crate feature tray-icon
only.Tray icon error.
BadTrayIcon(BadIcon)
desktop
and crate feature tray-icon
only.Bad tray icon error.
NoParent
Path does not have a parent.
NoExtension
Path does not have an extension.
NoBasename
Path does not have a basename.
CurrentDir(Error)
Cannot resolve current directory.
UnknownPath
Unknown path.
WindowNotFound
window not found.
BadResourceId(ResourceId)
The resource id is invalid.
Anyhow(Error)
The anyhow crate error.
WebviewNotFound
webview not found.
UnstableFeatureNotSupported
API requires the unstable feature flag.
CannotDeserializeScope(Box<dyn Error + Send + Sync>)
Failed to deserialize scope object.
RawHandleError(HandleError)
Failed to get a raw handle.