dash_context_provider/
error.rs

1/// Errors returned by the context provider
2#[derive(Debug, thiserror::Error)]
3pub enum ContextProviderError {
4    /// Generic Context provider error
5    #[error("Context provider error: {0}")]
6    Generic(String),
7
8    /// Configuration error
9    #[error("Configuration error: {0}")]
10    Config(String),
11
12    /// Data contract is invalid or not found, or some error occurred during data contract retrieval
13    #[error("cannot get data contract: {0}")]
14    DataContractFailure(String),
15
16    /// Token configuration is invalid or not found, or some error occurred during token configuration retrieval
17    #[error("cannot get token configuration: {0}")]
18    TokenConfigurationFailure(String),
19
20    /// Provided quorum is invalid
21    #[error("invalid quorum: {0}")]
22    InvalidQuorum(String),
23
24    /// Core Fork Error
25    #[error("activation fork error: {0}")]
26    ActivationForkError(String),
27
28    /// Async error, eg. when tokio runtime fails
29    #[error("async error: {0}")]
30    AsyncError(String),
31}