mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
chore: move RouterData Request types to hyperswitch_domain_models crate (#4723)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
pub use common_utils::errors::{ParsingError, ValidationError};
|
||||
#[cfg(feature = "email")]
|
||||
use external_services::email::EmailError;
|
||||
use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse;
|
||||
pub use redis_interface::errors::RedisError;
|
||||
pub use storage_impl::errors::ApplicationError;
|
||||
use storage_impl::errors::StorageError;
|
||||
@ -88,6 +89,12 @@ impl<T: PTError> From<T> for ProcessTrackerError {
|
||||
}
|
||||
}
|
||||
|
||||
impl PTError for ApiErrorResponse {
|
||||
fn to_pt_error(&self) -> ProcessTrackerError {
|
||||
ProcessTrackerError::EApiErrorResponse
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: PTError + std::fmt::Debug + std::fmt::Display> From<error_stack::Report<T>>
|
||||
for ProcessTrackerError
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user