dynamo_subscriber/error.rs
1use thiserror::Error as ThisError;
2
3/// All possible error types for this crate.
4#[allow(clippy::enum_variant_names)]
5#[derive(Debug, ThisError)]
6pub enum Error {
7 /// Not found stream arn when attempting to get table description for given table name.
8 #[error("not found dynamodb stream from table: {0}")]
9 NotFoundStream(String),
10 /// Not found stream description when attempting to get stream description.
11 #[error("not found dynamodb stream description from arn: {0}")]
12 NotFoundStreamDescription(String),
13 /// Any other errors from the aws sdk.
14 #[error("aws-sdk error: {0}")]
15 SdkError(Box<dyn std::error::Error + Send + Sync + 'static>),
16}