im_switch/error.rs
1/// Error type for input method operations.
2#[derive(Debug, thiserror::Error)]
3pub enum ImSwitchError {
4 #[error("IO error: {0}")]
5 Io(#[from] std::io::Error),
6 #[error("unsupported platform")]
7 UnsupportedPlatform,
8 #[error("input method not found: {0}")]
9 InputMethodNotFound(String),
10 #[error("{0}")]
11 Platform(String),
12}