//! WebSocket gateway error types.

use thiserror::Error;

/// Errors raised while handling WebSocket protocol, auth, or internal hub operations.
#[derive(Debug, Error)]
pub enum WsError {
    #[error("{0}")]
    Protocol(String),
    #[error("{0}")]
    Auth(String),
    #[error("{0}")]
    Internal(String),
}
