Expand description
Error types and handling for snp.
This module defines the SnipError enum which categorizes all errors
that can occur during snp operations. Errors are grouped by domain:
I/O operations, TOML parsing, clipboard access, command execution, and runtime errors.
§Example
use snip_it::error::{SnipError, SnipResult};
fn read_config() -> SnipResult<String> {
std::fs::read_to_string("config.toml")
.map_err(|e| SnipError::io_error("read config", "config.toml", e))
}Enums§
- Snip
Error - All possible errors that can occur in snp.
Type Aliases§
- Snip
Result - Convenient Result type