pub enum PaginatedQueryError {
BootstrapMetaQueryFailed(String),
EmptyResponse,
ReorgDetected,
RequestError(String),
ResponseError(Vec<String>),
DeserializationError(String),
}
Expand description
Errors that can occur while sending a paginated query.
Variants§
BootstrapMetaQueryFailed(String)
The bootstrap meta query failed.
EmptyResponse
The page response was empty.
A page query response should always contain at least the ‘meta’ field response. If the response is empty, it means that the subgraph is not returning any data.
ReorgDetected
A reorg was detected.
The indexer responded with an error message indicating that a reorg was detected.
RequestError(String)
An error occurred while sending one of the requests.
ResponseError(Vec<String>)
An error occurred while processing the query.
This error contains the error messages returned by the indexer when an error occurred while processing one of the page requests.
DeserializationError(String)
Response deserialization error.
An error occurred while deserializing the response.
Trait Implementations§
Source§impl Clone for PaginatedQueryError
impl Clone for PaginatedQueryError
Source§fn clone(&self) -> PaginatedQueryError
fn clone(&self) -> PaginatedQueryError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PaginatedQueryError
impl Debug for PaginatedQueryError
Source§impl Display for PaginatedQueryError
impl Display for PaginatedQueryError
Source§impl Error for PaginatedQueryError
impl Error for PaginatedQueryError
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()
Auto Trait Implementations§
impl Freeze for PaginatedQueryError
impl RefUnwindSafe for PaginatedQueryError
impl Send for PaginatedQueryError
impl Sync for PaginatedQueryError
impl Unpin for PaginatedQueryError
impl UnwindSafe for PaginatedQueryError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoError for Twhere
T: Error,
impl<T> IntoError for Twhere
T: Error,
Source§fn into_error(self) -> Error
fn into_error(self) -> Error
Convert the type into
Error
.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.