Package org.mifosplatform.portfolio.calendar.exception

Examples of org.mifosplatform.portfolio.calendar.exception.CalendarInstanceNotFoundException


        this.repository = repository;
    }

    public CalendarInstance findOneWithNotFoundDetection(final Long CalendarInstanceId) {
        final CalendarInstance calendatInstance = this.repository.findOne(CalendarInstanceId);
        if (calendatInstance == null) { throw new CalendarInstanceNotFoundException(CalendarInstanceId); }
        return calendatInstance;
    }
View Full Code Here


                calendarForUpdate.getId(), entityId, entityType.getValue());
        if (calendarInstance == null) {
            final String postFix = "for." + entityType.name().toLowerCase() + "not.found";
            final String defaultUserMessage = "No Calendar Instance details found for group with identifier " + entityId
                    + " and calendar with identifier " + calendarId;
            throw new CalendarInstanceNotFoundException(postFix, defaultUserMessage, entityId, calendarId);
        }
        return calendarInstance;
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.portfolio.calendar.exception.CalendarInstanceNotFoundException

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.