forked from
smokesignal.events/smokesignal
i18n+filtering fork - fluent-templates v2
1use thiserror::Error;
2
3/// These errors relate to the process of importing RSVP data into the system
4/// by administrators, typically during data migration or recovery.
5#[derive(Debug, Error)]
6pub enum AdminImportRsvpError {
7 /// Error when an RSVP cannot be inserted during import.
8 ///
9 /// This error occurs when attempting to insert an imported RSVP into
10 /// the database fails, typically due to data validation issues or
11 /// database constraints.
12 #[error("error-admin-import-rsvp-1 Failed to insert RSVP: {0}")]
13 InsertFailed(String),
14}
15
16/// These errors relate to the process of importing event data into the system
17/// by administrators, typically during data migration or recovery.
18#[derive(Debug, Error)]
19pub enum AdminImportEventError {
20 /// Error when an event cannot be inserted during import.
21 ///
22 /// This error occurs when attempting to insert an imported event into
23 /// the database fails, typically due to data validation issues or
24 /// database constraints.
25 #[error("error-admin-import-event-1 Failed to insert event: {0}")]
26 InsertFailed(String),
27}