Skip to main content

rsiot/components/cmp_surrealdb/
error.rs

1use super::COMPONENT_NAME;
2
3/// Ошибки cmp_surrealdb
4#[allow(missing_docs)]
5#[derive(Debug, thiserror::Error)]
6pub enum Error {
7    #[error("SurrealDB error: {0}")]
8    SurrealDB(#[from] surrealdb::Error),
9
10    #[error("{COMPONENT_NAME} | TokioSyncMpscSend")]
11    TokioSyncMpscSend,
12
13    #[error(transparent)]
14    TokioTaskJoin(#[from] tokio::task::JoinError),
15
16    #[error("{COMPONENT_NAME} | QueryInfo")]
17    QueryInfo,
18}