use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum ServerError {
#[error("transport error: {0}")]
Transport(#[from] grpc_quic_transport::TransportError),
#[error("invalid request: {0}")]
InvalidRequest(String),
#[error("stream I/O error: {0}")]
StreamIo(#[from] std::io::Error),
#[error("server shutting down")]
Shutdown,
}