forked from
smokesignal.events/smokesignal
i18n+filtering fork - fluent-templates v2
1use thiserror::Error;
2
3/// Represents errors that can occur during RSVP migration.
4///
5/// These errors relate to the migration or conversion of RSVP data
6/// between different systems, formats, or versions.
7#[derive(Debug, Error)]
8pub enum MigrateRsvpError {
9 /// Error when an invalid RSVP status is provided during migration.
10 ///
11 /// This error occurs when attempting to migrate an RSVP with a status
12 /// that doesn't match one of the expected values ('going', 'interested',
13 /// or 'notgoing').
14 #[error("error-migrate-rsvp-1 Invalid RSVP status: {0}. Expected 'going', 'interested', or 'notgoing'.")]
15 InvalidRsvpStatus(String),
16
17 /// Error when a user is not authorized to migrate an RSVP.
18 ///
19 /// This error occurs when a user attempts to migrate an RSVP that they
20 /// do not have permission to modify, typically because they are not
21 /// the RSVP owner or an administrator.
22 #[error("error-migrate-rsvp-2 Not authorized to migrate this RSVP")]
23 NotAuthorized,
24}