Files
mould-rs/src/error.rs
Nils Pukropp 277d8aa151
All checks were successful
Version Check / check-version (pull_request) Successful in 3s
improved error handling
2026-03-18 17:19:09 +01:00

15 lines
305 B
Rust

use thiserror::Error;
/// Custom error types for the mould application.
#[derive(Error, Debug)]
pub enum MouldError {
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("File not found: {0}")]
FileNotFound(String),
#[error("Terminal error: {0}")]
Terminal(String),
}