use thiserror::Error;
pub type Result<T> = std::result::Result<T, EventixError>;
#[derive(Error, Debug)]
pub enum EventixError {
#[error("Failed to parse date/time: {0}")]
DateTimeParse(String),
#[error("Invalid timezone: {0}")]
InvalidTimezone(String),
#[error("Recurrence error: {0}")]
RecurrenceError(String),
#[error("ICS error: {0}")]
IcsError(String),
#[error("Event validation error: {0}")]
ValidationError(String),
#[error("IO error: {0}")]
IoError(#[from] std::io::Error),
#[error("{0}")]
Other(String),
}