Package it.pdor.gestionePratica.exception

Examples of it.pdor.gestionePratica.exception.TassoUsuraException


   
    //BARBARA Aggiungo controllo tasso usura
    List<TassiRiferimento> tassi = getTassiRiferimento("GRAD", "I", tranche.getImportoMovimento(), tranche.getDataMovimento());
    if(tassi != null){
      if(tassi.size() == 0){
        throw new TassoUsuraException(messages.getMessage("gestionePratica.inserimentoTranche.tassoUsuraNonCensito"));
      }else if(tassi.size() > 1){
        throw new TassoUsuraException(messages.getMessage("gestionePratica.inserimentoTranche.piuTassiUsura"));
      }else{
        Finanziamento fin = new Finanziamento();
        fin.setTipoGenerazionePiano("L");
        fin.setTaeg(tranche.getTaeg());
        fin.setTassoUsura(tassi.get(0).getTassoRiferimento());
        try {
          generatorePdAFacade.controllaTassoUsura(fin);
        } catch (CalculationErrorException e) {
          e.printStackTrace();
          throw new TassoUsuraException(e.getMessage());
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of it.pdor.gestionePratica.exception.TassoUsuraException

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.