add tests for the api
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use api_core::data_type::DataType;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
@@ -16,6 +17,11 @@ pub enum MessageError {
|
||||
TokioTrySendError(#[from] tokio::sync::mpsc::error::TrySendError<()>),
|
||||
#[error(transparent)]
|
||||
TokioLockError(#[from] tokio::sync::TryLockError),
|
||||
#[error("Incorrect Data Type. {expected} expected. {actual} actual.")]
|
||||
IncorrectDataType {
|
||||
expected: DataType,
|
||||
actual: DataType,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user