Enum graphql_client_web::ClientError
source · pub enum ClientError {
Body,
Network(String),
Cast,
NoWindow,
ResponseShape,
ResponseText,
RequestError,
JsException,
}
Expand description
All the ways a request can go wrong.
not exhaustive
Variants
Body
The body couldn’t be built
Network(String)
An error caused by window.fetch
Cast
Error in a dynamic JS cast that should have worked
NoWindow
No window object could be retrieved
ResponseShape
Response shape does not match the generated code
ResponseText
Response could not be converted to text
RequestError
Exception thrown when building the request
JsException
Other JS exception
Trait Implementations
sourceimpl Debug for ClientError
impl Debug for ClientError
sourceimpl Display for ClientError
impl Display for ClientError
sourceimpl Fail for ClientError
impl Fail for ClientError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl PartialEq<ClientError> for ClientError
impl PartialEq<ClientError> for ClientError
sourcefn eq(&self, other: &ClientError) -> bool
fn eq(&self, other: &ClientError) -> bool
impl StructuralPartialEq for ClientError
Auto Trait Implementations
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnwindSafe for ClientError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more