pub enum SolariError {
Api {
status: u16,
code: Option<SolariErrorCode>,
message: String,
},
Transport {
message: String,
},
Protocol {
message: String,
},
Config {
message: String,
},
Connect {
message: String,
},
}Expand description
Every error raised by this crate.
Variants§
Api
A non-2xx response from the Solari API.
Transport
A transport failure, or retries exhausted without a usable response.
Protocol
A 2xx response whose body was missing required fields or was not JSON.
Config
The client was constructed with invalid options.
Connect
Attaching to the browser over CDP failed (only with the connect feature).
Implementations§
Trait Implementations§
Source§impl Debug for SolariError
impl Debug for SolariError
Source§impl Display for SolariError
impl Display for SolariError
Source§impl Error for SolariError
impl Error for SolariError
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 Forget for SolariError
impl Freeze for SolariError
impl Move for SolariError
impl RefUnwindSafe for SolariError
impl Send for SolariError
impl Sync for SolariError
impl Unpin for SolariError
impl UnsafeUnpin for SolariError
impl UnwindSafe for SolariError
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