Something went wrong. Try again.
The smokesignal.events web application
Something went wrong. Try again.
986 B · 24 lines
Rust
at main
12345678910111213141516171819202122232425use thiserror::Error;
/// Represents errors that can occur when viewing specific events.////// These errors typically happen when retrieving or displaying specific/// event data, including lookup failures and data enhancement issues.#[derive(Debug, Error)]pub(crate) enum ViewEventError { /// Error when a requested event cannot be found. /// /// This error occurs when attempting to view an event that doesn't /// exist in the system, typically due to an invalid identifier. #[error("error-smokesignal-view-event-1 Event not found: {0}")] EventNotFound(String),
/// Error when a legacy event exists but is no longer supported. /// /// This error occurs when an event exists using the legacy collection /// format (events.smokesignal.calendar.event) which is no longer supported. #[error( "error-smokesignal-view-event-2 Legacy event exists but support for legacy events has been removed" )] LegacyEventNotSupported,}