mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 07:02:24 +00:00
19 lines
384 B
Rust
19 lines
384 B
Rust
#[derive(Debug, thiserror::Error)]
|
|
|
|
pub enum Error {
|
|
#[error("Not found")]
|
|
NotFound,
|
|
|
|
#[error("Resource already exists and overwrite=false")]
|
|
AlreadyExists,
|
|
|
|
#[error("Invalid ics/vcf input: {0}")]
|
|
InvalidData(String),
|
|
|
|
#[error(transparent)]
|
|
ParserError(#[from] ical::parser::ParserError),
|
|
|
|
#[error(transparent)]
|
|
Other(#[from] anyhow::Error),
|
|
}
|