Skip to main content

gproxy_channel_api/
error.rs

1//! Errors returned by channel adapters.
2
3#[derive(Debug, thiserror::Error)]
4pub enum ChannelError {
5    #[error("missing setting: {0}")]
6    MissingSetting(&'static str),
7    #[error("invalid credential: {0}")]
8    InvalidCredential(String),
9    #[error("unsupported: {0}")]
10    Unsupported(&'static str),
11    #[error("build error: {0}")]
12    Build(String),
13    #[error("transient channel error: {0}")]
14    Transient(String),
15}