pub enum IndexerError {
Rpc(String),
Storage(String),
Handler {
handler: String,
reason: String,
},
ReorgDetected {
block_number: u64,
expected: String,
actual: String,
},
CheckpointMismatch {
block_number: u64,
},
Aborted {
reason: String,
},
Other(String),
}Expand description
Errors that can occur during indexing.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for IndexerError
impl Debug for IndexerError
Source§impl Display for IndexerError
impl Display for IndexerError
Source§impl Error for IndexerError
impl Error for IndexerError
1.30.0 · 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()
Source§impl From<IndexerError> for GraphqlError
impl From<IndexerError> for GraphqlError
Source§fn from(e: IndexerError) -> Self
fn from(e: IndexerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexerError
impl RefUnwindSafe for IndexerError
impl Send for IndexerError
impl Sync for IndexerError
impl Unpin for IndexerError
impl UnsafeUnpin for IndexerError
impl UnwindSafe for IndexerError
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