connectorx/sources/trino/
errors.rs

1use std::string::FromUtf8Error;
2
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6pub enum TrinoSourceError {
7    #[error("Cannot infer type from null for Trino")]
8    InferTypeFromNull,
9
10    #[error(transparent)]
11    ConnectorXError(#[from] crate::errors::ConnectorXError),
12
13    #[error(transparent)]
14    PrustoError(prusto::error::Error),
15
16    #[error(transparent)]
17    UrlParseError(#[from] url::ParseError),
18
19    #[error(transparent)]
20    TrinoUrlDecodeError(#[from] FromUtf8Error),
21
22    /// Any other errors that are too trivial to be put here explicitly.
23    #[error(transparent)]
24    Other(#[from] anyhow::Error),
25}