1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//! Protocol-level errors. use thiserror::Error; /// Errors returned by protocol operations (client I/O, token management, /// frame crypto). #[derive(Error, Debug)] pub enum ProtocolError { #[error("I/O error: {0}")] Io(#[from] std::io::Error), #[error("IPC error: {0}")] Ipc(String), /// The daemon rejected an application-service call with a typed error /// (WBS-408): (code, message). #[error("service error [{0}]: {1}")] Service(String, String), }