pub enum Error {
Http {
status: u16,
body: String,
},
Message(String),
Request(Error),
Json(Error),
WebSocket(Box<Error>),
PushRefused(PushRefused),
}Expand description
Every fallible SDK call returns this. Http carries the response body the
TypeScript SDK throws as new Error(await response.text()).
Variants§
Http
Message(String)
Request(Error)
Json(Error)
WebSocket(Box<Error>)
PushRefused(PushRefused)
A push to a dataset where no row was let through: why, and each row’s reason.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const Inner is !null: Freeze,
PhantomData<Inner>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
PhantomData<InvalidRow>: Freeze,
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Errorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Inner is !null: UnsafeUnpin,
PhantomData<Inner>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
PhantomData<InvalidRow>: UnsafeUnpin,
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