Skip to main content

paperforge_core/
error.rs

1use thiserror::Error;
2
3/// Result type for core operations.
4pub type CoreResult<T> = Result<T, CoreError>;
5
6/// Errors from core operations.
7#[derive(Debug, Error)]
8pub enum CoreError {
9    #[error("invalid value: {0}")]
10    InvalidValue(String),
11
12    #[error("out of range: {0}")]
13    OutOfRange(String),
14
15    #[error("not implemented: {0}")]
16    NotImplemented(String),
17}