openzeppelin_relayer/queues/
errors.rs1use serde::Serialize;
2use thiserror::Error;
3
4#[derive(Debug, Error, Serialize, Clone)]
6pub enum QueueBackendError {
7 #[error("Redis error: {0}")]
8 RedisError(String),
9 #[error("SQS error: {0}")]
10 SqsError(String),
11 #[error("Serialization error: {0}")]
12 SerializationError(String),
13 #[error("Configuration error: {0}")]
14 ConfigError(String),
15 #[error("Queue not found: {0}")]
16 QueueNotFound(String),
17 #[error("Worker initialization error: {0}")]
18 WorkerInitError(String),
19 #[error("Queue error: {0}")]
20 QueueError(String),
21}