The smokesignal.events web application
at main 24 lines 1.1 kB view raw
1use thiserror::Error; 2 3/// Represents errors that can occur during RSVP creation. 4/// 5/// These errors are typically triggered during the process of creating 6/// and storing RSVP records in the AT Protocol ecosystem. 7#[derive(Debug, Error)] 8pub(crate) enum CreateRsvpError { 9 /// Error when the AT Protocol server returns an error response. 10 /// 11 /// This error occurs when the PDS or other AT Protocol service 12 /// returns an error response during RSVP record creation. 13 #[error("error-smokesignal-create-rsvp-1 Server error: {message}")] 14 ServerError { message: String }, 15 16 /// Error when the event requires confirmed email addresses but the user has not confirmed their email. 17 /// 18 /// This error occurs when a user attempts to RSVP to an event that requires 19 /// confirmed email addresses, but the user has not confirmed their email address. 20 #[error( 21 "error-smokesignal-create-rsvp-2 Email confirmation required: This event requires a confirmed email address to RSVP. Please confirm your email address in your settings." 22 )] 23 EmailConfirmationRequired, 24}