rusterize/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum RusterizeError {
5 #[error("{0}")]
6 RuntimeError(&'static str),
7 #[error("{0}")]
8 ValueError(&'static str),
9 #[cfg(feature = "polars")]
10 #[error(transparent)]
11 Polars(#[from] polars::error::PolarsError),
12}
13
14pub type RusterizeResult<T> = std::result::Result<T, RusterizeError>;