Examples of CurrencyNotFoundException


Examples of org.mifosplatform.organisation.monetary.exception.CurrencyNotFoundException

    }

    public ApplicationCurrency findOneWithNotFoundDetection(final MonetaryCurrency currency) {

        final ApplicationCurrency defaultApplicationCurrency = this.repository.findOneByCode(currency.getCode());
        if (defaultApplicationCurrency == null) { throw new CurrencyNotFoundException(currency.getCode()); }

        final ApplicationCurrency applicationCurrency = ApplicationCurrency.from(defaultApplicationCurrency,
                currency.getDigitsAfterDecimal(), currency.getCurrencyInMultiplesOf());

        return applicationCurrency;
View Full Code Here

Examples of org.mifosplatform.organisation.monetary.exception.CurrencyNotFoundException

     * Used when its not needed for {@link ApplicationCurrency} to inherit
     * decimal place settings of existing currency.
     */
    public ApplicationCurrency findOneWithNotFoundDetection(final String currencyCode) {
        final ApplicationCurrency applicationCurrency = this.repository.findOneByCode(currencyCode);
        if (applicationCurrency == null) { throw new CurrencyNotFoundException(currencyCode); }
        return applicationCurrency;
    }
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.