1use thiserror::Error;
2
3#[allow(clippy::module_name_repetitions)]
4#[derive(Error, Debug)]
5pub enum IntoTypedError {
6 #[error("Failed to convert value to type")]
7 ConversionError(#[from] serde_json::Error),
8 #[error("Column not found")]
9 ColumnNotFound,
10 #[error("Value not found")]
11 ValueNotFound,
12 #[error("Expected {0} columns, found {1}")]
13 ColumnCountMismatch(usize, usize),
14 #[cfg(feature = "fast-blob")]
15 #[error("Could not decode blob {0}")]
16 BlobDecodeError(#[from] base64::DecodeError),
17}