1
2
3
4
5
6
7
8
9
10
use crate::database::Error as DbError;
use thiserror::Error;

#[derive(Error, Debug, Clone, PartialEq)]
pub enum AuthorizedSubjectsError {
    #[error("Channel unnavaible")]
    ChannelError(#[from] crate::commons::errors::ChannelErrors),
    #[error("Database Error")]
    DatabaseError(#[from] DbError),
}