Package br.jus.tjrn.arq.exception

Examples of br.jus.tjrn.arq.exception.ServiceBusinessException


    }
   
    public void validaItem(ItensTipoRacao item,List<ItensTipoRacao> itens) throws ServiceBusinessException{
      if(item != null){
        if(item.getInsumo() == null)
          throw new ServiceBusinessException("O campo Insumo não pode ser vazio.");
        else if(containsItem(item,itens))
          throw new ServiceBusinessException("Item já inserido.");
         
        if(item.getQuantidade() == null || item.getQuantidade().equals(0))
          throw new ServiceBusinessException("O campo quantidade de insumo não pode ser vazio.");
      }
    }
View Full Code Here

TOP

Related Classes of br.jus.tjrn.arq.exception.ServiceBusinessException

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.