Initialize Minecraft text generator project with basic structure and CLI functionality
This commit is contained in:
13
crates/lib/src/error.rs
Normal file
13
crates/lib/src/error.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum VoxelError {
|
||||
#[error("coordinates ({x}, {y}, {z}) out of bounds")]
|
||||
OutOfBounds { x: u32, y: u32, z: u32 },
|
||||
}
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum FontError {
|
||||
#[error("failed to parse TTF font data: invalid format")]
|
||||
InvalidTtf,
|
||||
}
|
||||
Reference in New Issue
Block a user