use thiserror::Error; /// Represents errors that can occur during search indexing operations. /// /// These errors typically occur when interacting with OpenSearch /// during the indexing process. #[derive(Debug, Error)] pub(crate) enum SearchIndexerError { /// Error when OpenSearch index creation fails. /// /// This error occurs when attempting to create an OpenSearch index /// and the operation fails with a server error response. #[error("error-smokesignal-search-indexer-1 Failed to create index: {error_body}")] IndexCreationFailed { error_body: String }, }