Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/hellgate/src/hg_invoice_payment.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2700,6 +2700,8 @@ hold_limit_routes(Routes0, VS, Iter, St) ->
ok = hg_limiter:hold_payment_limits(TurnoverLimits, Invoice, Payment, PaymentRoute, Iter),
{[Route | LimitHeldRoutes], RejectedRoutes}
catch
error:(#limiter_LimitNotFound{} = LimiterError) ->
do_reject_route(LimiterError, Route, TurnoverLimits, Acc);
error:(#limiter_InvalidOperationCurrency{} = LimiterError) ->
do_reject_route(LimiterError, Route, TurnoverLimits, Acc);
error:(#limiter_OperationContextNotSupported{} = LimiterError) ->
Expand Down
1 change: 1 addition & 0 deletions apps/hellgate/src/hg_limiter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ process_changes_try_wrap([LimitChange | OtherLimitChanges], WithFun, Clock, Cont
handle_caught_exception(Class, Reason, Stacktrace, IgnoreBusinessError)
end.

handle_caught_exception(error, #limiter_LimitNotFound{}, _Stacktrace, true) -> ok;
handle_caught_exception(error, #limiter_InvalidOperationCurrency{}, _Stacktrace, true) -> ok;
handle_caught_exception(error, #limiter_OperationContextNotSupported{}, _Stacktrace, true) -> ok;
handle_caught_exception(error, #limiter_PaymentToolNotSupported{}, _Stacktrace, true) -> ok;
Expand Down
Loading