aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
blob: 19872929ffed6a8ce9e0fd97bdfc084622327115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("rustables builder: {0}")]
    RustablesBuilder(#[from] rustables::error::BuilderError),
    #[error("rustables query: {0}")]
    RustablesQuery(#[from] rustables::error::QueryError),
}

pub type Result<T> = std::result::Result<T, Error>;