Package org.mifosplatform.infrastructure.sms.exception

Examples of org.mifosplatform.infrastructure.sms.exception.SmsNotFoundException


        return SmsMessage.pendingSms(group, client, staff, message, mobileNo);
    }

    public SmsMessage assembleFromResourceId(final Long resourceId) {
        final SmsMessage sms = this.smsMessageRepository.findOne(resourceId);
        if (sms == null) { throw new SmsNotFoundException(resourceId); }
        return sms;
    }
View Full Code Here


        try {
            final String sql = "select " + this.smsRowMapper.schema() + " where smo.id = ?";

            return this.jdbcTemplate.queryForObject(sql, this.smsRowMapper, new Object[] { resourceId });
        } catch (final EmptyResultDataAccessException e) {
            throw new SmsNotFoundException(resourceId);
        }
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.infrastructure.sms.exception.SmsNotFoundException

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.