error.rs
1 /// Errors originating from the delivery service layer. 2 /// 3 /// String payloads carry the underlying libwaku error message. These are 4 /// human-readable but not structured — callers should treat them as opaque 5 /// diagnostic text, not match on their content. 6 #[derive(Debug, thiserror::Error)] 7 pub enum DeliveryServiceError { 8 #[error("Waku publish message error: {0}")] 9 WakuPublishMessageError(String), 10 #[error("Waku node already initialized: {0}")] 11 WakuNodeAlreadyInitialized(String), 12 #[error("Waku connect peer error: {0}")] 13 WakuConnectPeerError(String), 14 15 #[error("An unknown error occurred: {0}")] 16 Other(anyhow::Error), 17 }