i18n+filtering fork - fluent-templates v2
at main 43 lines 1.9 kB view raw
1use thiserror::Error; 2 3/// Represents errors that can occur during data import operations. 4/// 5/// These errors typically happen when attempting to import events and RSVPs 6/// from different sources, including community and Smokesignal systems. 7#[derive(Debug, Error)] 8pub enum ImportError { 9 /// Error when listing community events fails. 10 /// 11 /// This error occurs when attempting to retrieve a list of community 12 /// events during an import operation fails, preventing the import. 13 #[error("error-import-1 Failed to list community events: {0}")] 14 FailedToListCommunityEvents(String), 15 16 /// Error when listing community RSVPs fails. 17 /// 18 /// This error occurs when attempting to retrieve a list of community 19 /// RSVPs during an import operation fails, preventing the import. 20 #[error("error-import-2 Failed to list community RSVPs: {0}")] 21 FailedToListCommunityRSVPs(String), 22 23 /// Error when listing Smokesignal events fails. 24 /// 25 /// This error occurs when attempting to retrieve a list of Smokesignal 26 /// events during an import operation fails, preventing the import. 27 #[error("error-import-3 Failed to list Smokesignal events: {0}")] 28 FailedToListSmokesignalEvents(String), 29 30 /// Error when listing Smokesignal RSVPs fails. 31 /// 32 /// This error occurs when attempting to retrieve a list of Smokesignal 33 /// RSVPs during an import operation fails, preventing the import. 34 #[error("error-import-4 Failed to list Smokesignal RSVPs: {0}")] 35 FailedToListSmokesignalRSVPs(String), 36 37 /// Error when an unsupported collection type is specified. 38 /// 39 /// This error occurs when the import operation specifies a collection 40 /// type that isn't supported for import operations. 41 #[error("error-import-5 Unsupported collection type: {0}")] 42 UnsupportedCollectionType(String), 43}