use thiserror::Error;

#[derive(Debug, Error)]
pub enum SessionError {
    #[error("session not found: {0}")]
    NotFound(String),

    #[error("session error: {0}")]
    Other(String),
}

impl From<crate::channels::base::ChannelError> for SessionError {
    fn from(e: crate::channels::base::ChannelError) -> Self {
        SessionError::Other(e.to_string())
    }
}
