Package com.streamreduce.core.service.exception

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


        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

Related Classes of com.streamreduce.core.service.exception.InventoryItemNotFoundException

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.