pub enum ErpcError {
Aborted,
BatchPolicy(String),
Config(String),
NotConfigured(String),
Http {
status: u16,
},
InvalidResponse(String),
JsonRpc {
code: i64,
message: String,
data: Option<Value>,
},
Timeout {
timeout_ms: u64,
},
Transport(String),
}Expand description
All errors produced by the SDK.
Variants§
Aborted
A caller cancelled the request.
BatchPolicy(String)
A batch violates a server boundary that must remain intact.
Config(String)
Invalid client configuration.
NotConfigured(String)
A requested namespace has no configured transport.
Http
Non-success HTTP response.
InvalidResponse(String)
Malformed or contract-incompatible response.
JsonRpc
JSON-RPC error returned by ERPC.
Fields
Timeout
Request timeout.
Transport(String)
Sanitized network or WebSocket failure.
Implementations§
Trait Implementations§
Source§impl Error for ErpcError
impl Error for ErpcError
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 ErpcError
impl RefUnwindSafe for ErpcError
impl Send for ErpcError
impl Sync for ErpcError
impl Unpin for ErpcError
impl UnsafeUnpin for ErpcError
impl UnwindSafe for ErpcError
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