refactor(scheduler): move scheduler to new crate to support workflows in multiple crates (#1681)

This commit is contained in:
Jagan
2023-09-06 13:11:09 +05:30
committed by GitHub
parent ec4652ec09
commit d4221f3368
72 changed files with 1966 additions and 1124 deletions

View File

@ -102,16 +102,20 @@ impl EmailClient for AwsSes {
}
}
#[allow(missing_docs)]
/// Errors that could occur from EmailClient.
#[derive(Debug, thiserror::Error)]
pub enum EmailError {
/// An error occurred when building email client.
#[error("Error building email client")]
ClientBuildingFailure,
/// An error occurred when sending email
#[error("Error sending email to recipient")]
EmailSendingFailure,
#[error("Failed to generate email token")]
TokenGenerationFailure,
#[error("Feature not implemented")]
NotImplemented,
}
/// Errors that could occur during SES operations.