pub enum SdkError {
Http(Error),
WebSocket(Box<Error>),
Json(Error),
Crypto(String),
Task(String),
Connection(String),
Timeout,
MethodNotFound(String),
InvalidConfig(String),
UrlParse(ParseError),
Generic(String),
}Expand description
Main error type for the SDK
Variants§
Http(Error)
HTTP request errors
WebSocket(Box<Error>)
WebSocket connection errors
Json(Error)
JSON serialization/deserialization errors
Crypto(String)
Encryption/decryption errors
Task(String)
Task execution errors
Connection(String)
Connection errors
Timeout
Timeout errors
MethodNotFound(String)
Method not found errors
InvalidConfig(String)
Invalid configuration errors
UrlParse(ParseError)
URL parsing errors
Generic(String)
Generic errors
Trait Implementations§
Source§impl Error for SdkError
impl Error for SdkError
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<DecodeError> for SdkError
impl From<DecodeError> for SdkError
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for SdkError
impl From<ParseError> for SdkError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SdkError
impl !RefUnwindSafe for SdkError
impl Send for SdkError
impl Sync for SdkError
impl Unpin for SdkError
impl !UnwindSafe for SdkError
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