The smokesignal.events web application
1use thiserror::Error;
2
3/// Represents errors that can occur when viewing specific events.
4///
5/// These errors typically happen when retrieving or displaying specific
6/// event data, including lookup failures and data enhancement issues.
7#[derive(Debug, Error)]
8pub(crate) enum ViewEventError {
9 /// Error when a requested event cannot be found.
10 ///
11 /// This error occurs when attempting to view an event that doesn't
12 /// exist in the system, typically due to an invalid identifier.
13 #[error("error-smokesignal-view-event-1 Event not found: {0}")]
14 EventNotFound(String),
15
16 /// Error when a legacy event exists but is no longer supported.
17 ///
18 /// This error occurs when an event exists using the legacy collection
19 /// format (events.smokesignal.calendar.event) which is no longer supported.
20 #[error(
21 "error-smokesignal-view-event-2 Legacy event exists but support for legacy events has been removed"
22 )]
23 LegacyEventNotSupported,
24}