1type BoxError = Box<dyn std::error::Error + Send + Sync + 'static>;
4
5#[derive(Debug, thiserror::Error)]
7pub enum Error {
8 #[error(transparent)]
10 InitFailed(BoxError),
11
12 #[error("Could not create new context: {0}")]
14 NewContext(String),
15
16 #[error("Could not send frame: {0}")]
18 SendFailed(String),
19
20 #[error(transparent)]
22 RSocket(#[from] wasmrs::Error),
23
24 #[error(transparent)]
26 PayloadError(#[from] wasmrs_frames::PayloadError),
27
28 #[error("Failed to query or decode operation list")]
30 OpList(String),
31
32 #[error("Could not find operation {0}::{1}")]
34 OpMissing(String, String),
35}