WIP: Preparation for recurrence expansion

This commit is contained in:
Lennart
2025-05-18 11:55:25 +02:00
parent f55224b21a
commit 3c7ee09116
10 changed files with 244 additions and 54 deletions

View File

@@ -1,4 +1,6 @@
use actix_web::{http::StatusCode, ResponseError};
use actix_web::{ResponseError, http::StatusCode};
use crate::calendar::CalDateTimeError;
#[derive(Debug, thiserror::Error)]
pub enum Error {
@@ -11,6 +13,9 @@ pub enum Error {
#[error("Invalid ics/vcf input: {0}")]
InvalidData(String),
#[error(transparent)]
RRuleParserError(#[from] crate::calendar::rrule::ParserError),
#[error("Read-only")]
ReadOnly,
@@ -25,6 +30,9 @@ pub enum Error {
#[error(transparent)]
Other(#[from] anyhow::Error),
#[error(transparent)]
CalDateTimeError(#[from] CalDateTimeError),
}
impl ResponseError for Error {