Some checks failed
Version Check / check-version (pull_request) Failing after 3s
19 lines
368 B
Rust
19 lines
368 B
Rust
use thiserror::Error;
|
|
use std::io;
|
|
|
|
/// Custom error types for the mould application.
|
|
#[derive(Error, Debug)]
|
|
pub enum MouldError {
|
|
#[error("IO error: {0}")]
|
|
Io(#[from] io::Error),
|
|
|
|
#[error("Format error: {0}")]
|
|
Format(String),
|
|
|
|
#[error("File not found: {0}")]
|
|
FileNotFound(String),
|
|
|
|
#[error("Terminal error: {0}")]
|
|
Terminal(String),
|
|
}
|