#[non_exhaustive]pub enum Error {
Show 38 variants
Runtime(Error),
WindowLabelAlreadyExists(String),
WebviewLabelAlreadyExists(String),
CannotReparentWebviewWindow,
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),
Image(ImageError),
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),
Csprng(Error),
InvokeKey,
IllegalEventName(String),
TokioOneshotRecv(RecvError),
}
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.
CannotReparentWebviewWindow
Cannot use the webview reparent function on webview windows.
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.
Image(ImageError)
Image error.
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.
Csprng(Error)
Something went wrong with the CSPRNG.
InvokeKey
Bad __TAURI_INVOKE_KEY__
value received in ipc message.
IllegalEventName(String)
Illegal event name.
TokioOneshotRecv(RecvError)
tokio oneshot channel failed to receive message