Package com.streamreduce.core.service.exception

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


    @Override
    public SobaMessage getMessage(Account account, ObjectId messageId) throws MessageNotFoundException {
        SobaMessage message = sobaMessageDAO.getFromInbox(account, messageId);
        if (message == null) {
            throw new MessageNotFoundException(messageId.toString());
        }
        return message;
    }
View Full Code Here


    @Override
    public void updateMessage(Account account, SobaMessage sobaMessage) throws MessageNotFoundException {
        // verify it exists first
        SobaMessage message = sobaMessageDAO.getFromInbox(account, sobaMessage.getId());
        if (message == null) {
            throw new MessageNotFoundException(sobaMessage.getId().toString());
        }
        sobaMessageDAO.saveToInbox(account, sobaMessage);
    }
View Full Code Here

TOP

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

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.