All checks were successful
Version Check / check-version (pull_request) Successful in 3s
15 lines
305 B
Rust
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),
|
|
}
|