The smokesignal.events web application
1use thiserror::Error;
2
3/// Represents errors that can occur during event deletion.
4///
5/// These errors are typically triggered during validation or authorization
6/// checks when a user attempts to delete an event.
7#[derive(Debug, Error)]
8pub(crate) enum DeleteEventError {
9 /// Error when the identity does not have an event with the specified AT-URI.
10 ///
11 /// This error occurs when a user attempts to delete an event that doesn't
12 /// exist in their collection or when the AT-URI is invalid.
13 #[error(
14 "error-smokesignal-delete-event-1 identity does not have event with that AT-URI: {aturi}"
15 )]
16 EventNotFound { aturi: String },
17}