taple_core/database/
error.rs1use thiserror::Error;
3
4#[derive(Error, Debug, Clone, PartialEq)]
6pub enum Error {
7 #[error("Entry Not Found")]
9 EntryNotFound,
10 #[error("Error while serializing")]
12 SerializeError,
13 #[error("Error while deserializing")]
15 DeserializeError,
16 #[error("Subject Apply failed")]
18 SubjectApplyFailed,
19 #[error("Conversion to Digest Identifier failed")]
21 NoDigestIdentifier,
22 #[error("Key Elements must have more than one element")]
23 KeyElementsError,
24 #[error("An error withing the database custom implementation {0}")]
26 CustomError(String),
27 #[error("State non existent, possibilities are: Pending or Voted.")]
28 NonExistentStatus,
29}