1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use thiserror::Error;
#[derive(Debug, Error, Clone, Copy)]
#[non_exhaustive]
pub enum ActionValidationError {
#[error("no data was given when data was expected")]
Data,
#[error("no key was given when a key was expected.")]
Key,
#[error("no table was provided")]
Table,
}
#[derive(Debug, Error)]
#[error("an error occurred running the action")]
pub struct ActionRunError {
#[from]
source: Box<dyn std::error::Error + Send + Sync>,
}