drive/error/
fee.rs

1/// Fee errors
2#[derive(Debug, thiserror::Error)]
3pub enum FeeError {
4    /// Overflow error
5    // TODO: Revisit
6    #[error("overflow error: {0}")]
7    Overflow(&'static str),
8
9    /// The user does not have enough balance
10    #[error("insufficient balance error: {0}")]
11    InsufficientBalance(&'static str),
12
13    /// Operation not allowed error
14    #[error("operation not allowed error: {0}")]
15    OperationNotAllowed(&'static str),
16
17    /// Corrupted estimated layer info missing error
18    #[error("corrupted estimated layer info missing error: {0}")]
19    CorruptedEstimatedLayerInfoMissing(String),
20
21    /// Corrupted code execution error
22    #[error("corrupted removed bytes from identities serialization error: {0}")]
23    CorruptedRemovedBytesFromIdentitiesSerialization(&'static str),
24
25    /// Corrupted code execution error
26    #[error("corrupted code execution error: {0}")]
27    CorruptedCodeExecution(&'static str),
28
29    /// Decimal conversion error
30    #[error("decimal conversion error: {0}")]
31    DecimalConversion(&'static str),
32
33    /// Document type field not found for estimation
34    #[error("document type field not found for estimation  error: {0}")]
35    DocumentTypeFieldNotFoundForEstimation(String),
36}