The smokesignal.events web application
56
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: removing unused code

-50
-13
src/http/errors/admin_errors.rs
··· 1 - use thiserror::Error; 2 1 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)] 6 - pub(crate) 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 - }
-28
src/http/errors/common_error.rs
··· 17 17 #[error("error-common-2 Not authorized to perform this action")] 18 18 NotAuthorized, 19 19 20 - /// Error when an unsupported event type is encountered. 21 - /// 22 - /// This error occurs when an operation is attempted on an event type 23 - /// that is not supported by the current functionality. 24 - #[error("error-common-3 Unsupported event type")] 25 - UnsupportedEventType, 26 - 27 20 /// Error when a required field is missing. 28 21 /// 29 22 /// This error occurs when a form or request is missing a mandatory field 30 23 /// that is needed to complete the operation. 31 24 #[error("error-common-4 Required field not provided")] 32 25 FieldRequired, 33 - 34 - /// Error when an AT Protocol URI has an invalid format. 35 - /// 36 - /// This error occurs when an AT Protocol URI is malformed or 37 - /// doesn't follow the expected format specification. 38 - #[error("error-common-6 Invalid AT-URI format")] 39 - InvalidAtUri, 40 - 41 - /// Error when a requested record cannot be found. 42 - /// 43 - /// This error occurs when an operation is attempted on a record 44 - /// that doesn't exist in the database. 45 - #[error("error-common-7 Record not found")] 46 - RecordNotFound, 47 - 48 - /// Error when record data cannot be parsed. 49 - /// 50 - /// This error occurs when a record's data cannot be properly 51 - /// deserialized or parsed into the expected structure. 52 - #[error("error-common-8 Failed to parse record data")] 53 - FailedToParse, 54 26 55 27 /// Error when event data has an invalid format or is corrupted. 56 28 ///
-1
src/http/errors/mod.rs
··· 13 13 pub mod view_event_error; 14 14 pub mod web_error; 15 15 16 - pub(crate) use admin_errors::AdminImportRsvpError; 17 16 pub(crate) use common_error::CommonError; 18 17 pub(crate) use create_event_errors::CreateEventError; 19 18 pub(crate) use edit_event_error::EditEventError;
-8
src/http/errors/web_error.rs
··· 12 12 use axum::response::Response; 13 13 use thiserror::Error; 14 14 15 - use super::admin_errors::AdminImportRsvpError; 16 15 use super::common_error::CommonError; 17 16 use super::create_event_errors::CreateEventError; 18 17 use super::edit_event_error::EditEventError; ··· 90 89 /// different formats or systems. 91 90 #[error(transparent)] 92 91 MigrateRsvp(#[from] MigrateRsvpError), 93 - 94 - /// Admin RSVP import errors. 95 - /// 96 - /// This error occurs when administrators have issues importing RSVP 97 - /// records into the system. 98 - #[error(transparent)] 99 - AdminImportRsvp(#[from] AdminImportRsvpError), 100 92 101 93 /// Cache operation errors. 102 94 ///