This commit is contained in:
1 parent
e72fdd9fcb
commit
f413d5e2eb
5 files changed
+168
-42
No files matched your search
@@ -0,0 +1,18 @@
|
||||
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),
|
||||
}
|
||||
Reference in new issue
Block a user