You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 24, 2023. It is now read-only.
Complication
in PaymentDispatcher#dispatchPayment():
try {
returnmethodDispatcher.dispatchPayment(paymentWithCartLike);
} catch (finalConcurrentModificationExceptioncme) {
thrownewjava.util.ConcurrentModificationException
("The payment could not be dispatched: " + cme.getMessage(), cme);
}
The thrown io.sphere.sdk.client.ConcurrentModificationException is wrapped to java.util.ConcurrentModificationException exception, which is unnecessary and make developer confusing.
Resolution
Avoid wrapping into java.util.ConcurrentModificationException
Fix the caller in PaymentHandler.java, which catches java.util.ConcurrentModificationException now.