use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum TransportError {
#[error("unsupported endpoint transport: {scheme}")]
UnsupportedEndpointTransport {
scheme: &'static str,
},
#[error(transparent)]
Status(#[from] tonic::Status),
#[error(transparent)]
Tonic(#[from] tonic::transport::Error),
}