mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(api_models): add error structs (#532)
Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -85,6 +85,7 @@ where
|
||||
V: ErrorSwitch<U> + error_stack::Context,
|
||||
U: error_stack::Context,
|
||||
{
|
||||
#[track_caller]
|
||||
fn switch(self) -> Result<T, error_stack::Report<U>> {
|
||||
match self {
|
||||
Ok(i) => Ok(i),
|
||||
|
||||
Reference in New Issue
Block a user