contextvm_sdk/core/
error.rs1pub type Result<T> = std::result::Result<T, Error>;
5
6#[derive(Debug, thiserror::Error)]
8pub enum Error {
9 #[error("Transport error: {0}")]
11 Transport(String),
12
13 #[error("Encryption error: {0}")]
15 Encryption(String),
16
17 #[error("Decryption error: {0}")]
19 Decryption(String),
20
21 #[error("Request timed out")]
23 Timeout,
24
25 #[error("Validation error: {0}")]
27 Validation(String),
28
29 #[error("Unauthorized: {0}")]
31 Unauthorized(String),
32
33 #[error("Serialization error: {0}")]
35 Serialization(#[from] serde_json::Error),
36
37 #[error("{0}")]
39 Other(String),
40}