refactor(router): remove WebhookApiErrorSwitch and implement error mapping using ErrorSwitch (#1660)

Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
This commit is contained in:
Panagiotis Ganelis
2023-07-17 20:57:01 +03:00
committed by GitHub
parent 728177666b
commit a7c66ddea2
5 changed files with 257 additions and 277 deletions

View File

@ -1,10 +1,10 @@
pub mod types;
pub mod utils;
use common_utils::errors::ReportSwitchExt;
use error_stack::{report, IntoReport, ResultExt};
use masking::ExposeInterface;
use router_env::{instrument, tracing};
use utils::WebhookApiErrorSwitch;
use super::{errors::StorageErrorExt, metrics};
use crate::{