Package com.emc.plants.service.exceptions

Examples of com.emc.plants.service.exceptions.NoSupplierException


                }
                portAddress = new URL(stringPortAddress);
            }
        } catch (JAXRPCException e) {
            Util.debug("ReceiveOrdersJAXRPCProxy.getPortAddress() -  JAXRPCException: " + e);
            throw new NoSupplierException("No Supplier was found.");
        } catch (Exception e) {
            Util.debug("ReceiveOrdersJAXRPCProxy.getPortAddress() -  Exception: " + e);
            e.printStackTrace();
        }
        return portAddress;
View Full Code Here


//            trackNum = supplierOrders.sendOrder(customerID, backOrderID, inventoryID, quantity);
            Util.debug("ReceiveOrdersJAXRPCProxy.sendOrder() -  sending order to Supplier has completed.");
        catch (JAXRPCException e) {
            trackNum = "0";
            Util.debug("ReceiveOrdersJAXRPCProxy.sendOrder() -  JAXRPCException: " + e);
            throw new NoSupplierException("Supplier Not Found");
        } catch (Exception e) {
            trackNum = "0";
            Util.debug("ReceiveOrdersJAXRPCProxy.sendOrder() -  Exception: " + e);
            throw new NoSupplierException("Error sending order to the Supplier");
        }
        return (trackNum);
    }
View Full Code Here

//            orderStatus = supplierOrders.checkOrderStatus(supplierOrderID);
            Util.debug("ReceiveOrdersJAXRPCProxy.checkOrderStatus() -  checking status of order with Supplier has completed.  Supplier returned: " +orderStatus);
        catch (JAXRPCException e) {
            orderStatus = false;
            Util.debug("ReceiveOrdersJAXRPCProxy.checkOrderStatus() -  JAXRPCException: " + e);
            throw new NoSupplierException("Supplier Not Found");
        } catch (Exception e) {
            orderStatus = false;
            Util.debug("ReceiveOrdersJAXRPCProxy.checkOrderStatus() -  Exception: " + e);
            throw new NoSupplierException("Error sending order to the Supplier");
        }
        return (orderStatus);
    }
View Full Code Here

                                if (!trackNum.equals("0")) {
                                    req.setAttribute(Util.ATTR_RESULTS, "The Stock Order has successfully been sent to the Supplier.  Tracking number is  " + trackNum);
                                    // Save the returned Supplier Order ID with the back order.  This Supplier Order ID (or tracking number) is used to check the order status.
                                    backOrderStock.setSupplierOrderID(backOrderID, trackNum);
                                } else {
                                    throw new NoSupplierException("Sending the Stock Order to the Supplier has failed.");
                                }
                            } else {
                                throw new NoSupplierException("Sending the Stock Order to the Supplier has failed.");
                                //Util.debug("AdminServlet.performBackOrder() - trackNum returned from Supplier is null.  Ignoring trackNum.");
                                //req.setAttribute(Util.ATTR_RESULTS, "The Stock Order has successfully been sent to the Supplier.  Tracking number is unknown");
                            }
                        } catch (NoSupplierException e) {
                            // Sending the Stock Order to the Supplier has failed.
View Full Code Here

                                if (!trackNum.equals("0")) {
                                    req.setAttribute(Util.ATTR_RESULTS, "The Stock Order has successfully been sent to the Supplier.  Tracking number is  " + trackNum);
                                    // Save the returned Supplier Order ID with the back order.  This Supplier Order ID (or tracking number) is used to check the order status.
                                    backOrderStock.setSupplierOrderID(backOrderID, trackNum);
                                } else {
                                    throw new NoSupplierException("Sending the Stock Order to the Supplier has failed.");
                                }
                            } else {
                                throw new NoSupplierException("Sending the Stock Order to the Supplier has failed.");
                                //logger.debug("AdminController.performBackOrder() - trackNum returned from Supplier is null.  Ignoring trackNum.");
                                //req.setAttribute(Util.ATTR_RESULTS, "The Stock Order has successfully been sent to the Supplier.  Tracking number is unknown");
                            }
                        } catch (NoSupplierException e) {
                            // Sending the Stock Order to the Supplier has failed.
View Full Code Here

TOP

Related Classes of com.emc.plants.service.exceptions.NoSupplierException

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.