Package org.broadleafcommerce.core.pricing.service.exception

Examples of org.broadleafcommerce.core.pricing.service.exception.PricingException


        try {
            return mergeCartService.mergeCart(customer, anonymousCart, priceOrder);
        } catch (RemoveFromCartException e) {
            // This should not happen as this service should be configured to use the LegacyMergeCartService, which will
            // not throw this exception
            throw new PricingException(e);
        }
    }
View Full Code Here


        try {
            return mergeCartService.reconstructCart(customer, priceOrder);
        } catch (RemoveFromCartException e) {
            // This should not happen as this service should be configured to use the LegacyMergeCartService, which will
            // not throw this exception
            throw new PricingException(e);
        }
    }
View Full Code Here

            ProcessContext<Order> context = (ProcessContext<Order>) pricingWorkflow.doActivities(order);
            Order response = context.getSeedData();

            return response;
        } catch (WorkflowException e) {
            throw new PricingException("Unable to execute pricing for order -- id: " + order.getId(), e);
        }
    }
View Full Code Here

        for (BundleOrderItem bundleOrderItem : bundlesToRemove) {
            try {
                order = orderService.removeItem(order.getId(), bundleOrderItem.getId(), false);
            } catch (RemoveFromCartException e) {
                throw new PricingException("Could not remove item", e);
            }
        }

        return order;
    }
View Full Code Here

                                LOG.info("Problem acquiring lock during pricing call. Retry limit exceeded at (" + retryCount + "). Throwing exception.");
                            }
                            if (ex instanceof PricingException) {
                                throw (PricingException) ex;
                            } else {
                                throw new PricingException(ex);
                            }
                        } else {
                            order = findOrderById(order.getId());
                            retryCount++;
                        }
                        try {
                            Thread.sleep(pricingRetryWaitIntervalForLockFailure);
                        } catch (Throwable e) {
                            //do nothing
                        }
                    } else {
                        if (ex instanceof PricingException) {
                            throw (PricingException) ex;
                        } else {
                            throw new PricingException(ex);
                        }
                    }
                }
            }
View Full Code Here

TOP

Related Classes of org.broadleafcommerce.core.pricing.service.exception.PricingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.