mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
refactor: include api key expiry workflow into process tracker (#3661)
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
pub use common_utils::errors::{ParsingError, ValidationError};
|
||||
#[cfg(feature = "email")]
|
||||
use external_services::email::EmailError;
|
||||
pub use redis_interface::errors::RedisError;
|
||||
pub use storage_impl::errors::ApplicationError;
|
||||
use storage_impl::errors::StorageError;
|
||||
@ -51,6 +53,9 @@ pub enum ProcessTrackerError {
|
||||
EParsingError(error_stack::Report<ParsingError>),
|
||||
#[error("Validation Error Received: {0}")]
|
||||
EValidationError(error_stack::Report<ValidationError>),
|
||||
#[cfg(feature = "email")]
|
||||
#[error("Received Error EmailError: {0}")]
|
||||
EEmailError(error_stack::Report<EmailError>),
|
||||
#[error("Type Conversion error")]
|
||||
TypeConversionError,
|
||||
}
|
||||
@ -111,3 +116,9 @@ error_to_process_tracker_error!(
|
||||
error_stack::Report<ValidationError>,
|
||||
ProcessTrackerError::EValidationError(error_stack::Report<ValidationError>)
|
||||
);
|
||||
|
||||
#[cfg(feature = "email")]
|
||||
error_to_process_tracker_error!(
|
||||
error_stack::Report<EmailError>,
|
||||
ProcessTrackerError::EEmailError(error_stack::Report<EmailError>)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user