tauri_plugin_hasgard/error.rs
1/// Plugin-level errors for tauri-hasgard.
2#[derive(Debug, thiserror::Error)]
3pub enum Error {
4 /// An I/O error occurred (socket, file, etc.).
5 #[error("io error: {0}")]
6 Io(#[from] std::io::Error),
7
8 /// A JSON serialization/deserialization error occurred.
9 #[error("json error: {0}")]
10 Json(#[from] serde_json::Error),
11}