Package ecar.exception

Examples of ecar.exception.ECARException


        return listUnidade;
       
      }
      catch (HibernateException e){
        this.logger.error(e);
        throw new ECARException("erro.hibernateException");
      }
           
    }
View Full Code Here


        return unidade;
       
      }
      catch (HibernateException e){
        this.logger.error(e);
        throw new ECARException("erro.hibernateException");
      }
           
    } 
View Full Code Here

            {
                tx.rollback(  );
            }

            this.logger.error( e );
            throw new ECARException( "erro.hibernateException" );
        }
    }
View Full Code Here

                  try {                 
                    String nomeArquivoNovo = FileUpload.salvarArquivoSessaoFisicamente(request, "a" + grupoAtributo.getCodSga().toString(), caminhoAuxiliarImagem);
                    if(nomeArquivoNovo != null && !nomeArquivoNovo.equals(""))
                      demandaAtributo.setInformacao(nomeArquivoNovo);
                  } catch (FileNotFoundException e) {
                    throw new ECARException("erro.arquivoUrl",e, new String[]{caminhoAuxiliarImagem});
                  } catch (Exception e) {
                    throw new ECARException("erro.upload",e, new String[]{caminhoAuxiliarImagem});
                  }
//                            }
              }

                    }
View Full Code Here

      List listaSit = situacaoDao.pesquisar(situacao, new String[] {"codSitd", "asc"});
     
      if (listaSit != null && listaSit.size() > 0) {
        regDemanda.setSitDemandaSitd((SitDemandaSitd) listaSit.iterator().next());
      } else {
        throw new ECARException("registroDemanda.inclusao.erro.sitDemandaSitd");
      }
    }
   
    List filhos = new ArrayList();
    if (regDemanda.getDemAtributoDemas() != null)
View Full Code Here

      if (tx != null)
        try {
          tx.rollback();
        } catch (HibernateException r) {
          this.logger.error(r);
          throw new ECARException("erro.hibernateException");
        }
      this.logger.error(e);
      throw new ECARException("erro.hibernateException");
    } catch (ECARException e) {
      this.logger.error(e);
      if (tx != null)
        try {
          tx.rollback();
        } catch (HibernateException r) {
          this.logger.error(r);
          throw new ECARException("erro.hibernateException");
        }
      throw e;
    }
  }
View Full Code Here

               
                exclusao.add(regDemanda);
              }
              else{
               
                throw new ECARException("registroDemanda.exclusao.erroDemandaRelacionada");
              }
          }
         
          if (exclusao.size() > 0)
            super.excluir(exclusao);
View Full Code Here

      }
     
      return demandasFiltro;
    } catch (HibernateException e) {
      this.logger.error(e);
            throw new ECARException(e);  
    }
  }
View Full Code Here

                  return retorno.toString();
              }
          }
      } catch (Exception e) {
        this.logger.error(e);
        throw new ECARException(e);
        }
        return "";
    }
View Full Code Here

                 
      retorno = q.list();
     
        } catch(IOException e){
      this.logger.error(e);
          throw new ECARException(e)
        } catch (HibernateException e) {
            this.logger.error(e);
            throw new ECARException("erro.hibernateException");
        }
        return retorno;
  }
View Full Code Here

TOP

Related Classes of ecar.exception.ECARException

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.