Examples of InventoryItemNotFoundException


Examples of com.streamreduce.core.service.exception.InventoryItemNotFoundException

    @Override
    public InventoryItem getInventoryItem(ObjectId objectId) throws InventoryItemNotFoundException {
        InventoryItem inventoryItem = inventoryItemDAO.get(objectId);

        if (inventoryItem == null) {
            throw new InventoryItemNotFoundException(objectId.toString());
        }

        // Create the event
        eventService.createEvent(EventId.READ,
                                 inventoryItem,
View Full Code Here

Examples of com.streamreduce.core.service.exception.InventoryItemNotFoundException

        Preconditions.checkNotNull(externalId, "externalId cannot be null.");

        InventoryItem inventoryItem = inventoryItemDAO.getInventoryItem(connection, externalId);

        if (inventoryItem == null) {
            throw new InventoryItemNotFoundException("No inventory item for connection [" + connection.getId() + "] " +
                    "with the given externalId of " + externalId);
        }

        // Create the event
        eventService.createEvent(EventId.READ,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.