pub enum SnsHostError {
Show 25 variants
UnsupportedNetwork {
network: String,
},
Runtime(RuntimeError),
AgentBuild {
endpoint: String,
reason: String,
},
InvalidPrincipal {
field: &'static str,
reason: String,
},
CandidEncode {
message: &'static str,
reason: String,
},
AgentCall {
method: &'static str,
reason: String,
},
GovernanceError {
method: &'static str,
error_type: i32,
message: String,
},
MissingGovernanceResult {
method: &'static str,
},
CandidDecode {
message: &'static str,
reason: String,
},
UnknownSnsId {
id: usize,
sns_count: usize,
},
UnknownSnsRoot {
root_canister_id: String,
},
InvalidLookup {
input: String,
},
MissingNeuronsCache {
path: PathBuf,
},
MissingNeuronsCacheForId {
id: usize,
root: PathBuf,
},
MissingProposalsCache {
path: PathBuf,
},
ReadCache {
path: PathBuf,
source: Error,
},
ParseCache {
path: PathBuf,
source: Error,
},
SerializeCache {
path: PathBuf,
source: Error,
},
UnsupportedCacheSchemaVersion {
version: u32,
expected: u32,
},
CacheNetworkMismatch {
requested: String,
actual: String,
},
CacheIdentityMismatch {
path: PathBuf,
field: &'static str,
expected: String,
actual: String,
},
Cache(CacheFileError),
IncompleteRefresh {
pages_fetched: u32,
rows_fetched: usize,
reason: String,
},
MissingCacheRoot,
UnsupportedProposalView {
reason: String,
},
}Expand description
SnsHostError
Typed error returned by SNS report builders, live sources, and cache reads.
Variants§
UnsupportedNetwork
Runtime(RuntimeError)
AgentBuild
InvalidPrincipal
CandidEncode
AgentCall
GovernanceError
MissingGovernanceResult
CandidDecode
UnknownSnsId
UnknownSnsRoot
InvalidLookup
MissingNeuronsCache
MissingNeuronsCacheForId
MissingProposalsCache
ReadCache
ParseCache
SerializeCache
UnsupportedCacheSchemaVersion
CacheNetworkMismatch
CacheIdentityMismatch
Cache(CacheFileError)
IncompleteRefresh
MissingCacheRoot
UnsupportedProposalView
Trait Implementations§
Source§impl Debug for SnsHostError
impl Debug for SnsHostError
Source§impl Display for SnsHostError
impl Display for SnsHostError
Source§impl Error for SnsHostError
impl Error for SnsHostError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for SnsHostError
impl !UnwindSafe for SnsHostError
impl Freeze for SnsHostError
impl Send for SnsHostError
impl Sync for SnsHostError
impl Unpin for SnsHostError
impl UnsafeUnpin for SnsHostError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more