Something went wrong. Try again.
The smokesignal.events web application forked from smokesignal.events/smokesignal
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637use thiserror::Error;
/// Represents errors that can occur during event creation.////// These errors are typically triggered during validation of user-submitted/// event creation forms.#[derive(Debug, Error)]pub(crate) enum CreateEventError { /// Error when the event name is not provided. /// /// This error occurs when a user attempts to create an event without /// specifying a name, which is a required field. #[error("error-smokesignal-create-event-1 Name not set")] NameNotSet,
/// Error when the event description is not provided. /// /// This error occurs when a user attempts to create an event without /// specifying a description, which is a required field. #[error("error-smokesignal-create-event-2 Description not set")] DescriptionNotSet,
/// Error when the AT Protocol server returns an error response. /// /// This error occurs when the PDS or other AT Protocol service /// returns an error response during event record creation. #[error("error-smokesignal-create-event-3 Server error: {message}")] ServerError { message: String },
/// Error when the header image blob cannot be constructed. /// /// This error occurs when the provided header CID cannot be /// used to construct a valid TypedBlob for the event media. #[error("error-smokesignal-create-event-4 Invalid header blob: {0}")] InvalidHeaderBlob(String),}