Enum tauri::Error [−][src]
#[non_exhaustive] pub enum Error {}Show variants
Runtime(Error), CreateWebview(Box<dyn Error + Send>), CreateWindow, WebviewNotFound, FailedToSendMessage, AssetNotFound(String), Json(Error), UnknownApi(Option<Error>), FailedToExecuteApi(Error), Io(Error), Base64Decode(DecodeError), InvalidIcon(Box<dyn Error + Send>), HttpClientNotInitialized, ApiNotEnabled(String), ApiNotAllowlisted(String), InvalidArgs(&'static str, Error), Setup(Box<dyn Error + Send>), TauriUpdater(Error), PluginInitialization(String, String), DialogDefaultPathNotExists(PathBuf), SystemTray(Box<dyn Error + Send>),
Expand description
Runtime errors that can happen inside a Tauri application.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Runtime(Error)
Runtime error.
Failed to create webview.
Failed to create window.
Can’t access webview dispatcher because the webview was closed or not found.
Failed to send message to webview.
AssetNotFound(String)
Embedded asset not found.
Json(Error)
Failed to serialize/deserialize.
Unknown API type.
FailedToExecuteApi(Error)
Failed to execute tauri API.
Io(Error)
IO error.
Base64Decode(DecodeError)
Failed to decode base64.
Failed to load window icon.
Client with specified ID not found.
ApiNotEnabled(String)
API not enabled by Tauri.
ApiNotAllowlisted(String)
API not whitelisted on tauri.conf.json
Invalid args when running a command.
Encountered an error in the setup hook,
TauriUpdater(Error)
Tauri updater error.
Error initializing plugin.
DialogDefaultPathNotExists(PathBuf)
default_path
provided to dialog API doesn’t exist.
Encountered an error creating the app system tray,
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error