Package br.com.procempa.modus.entity

Examples of br.com.procempa.modus.entity.ExceptionLog


                } else {
                  VisitaSearch.getInstance().getTableModel()
                      .replaceItem(visita);
                }
              } catch (Exception e) {
                ExceptionLog eLog = ExceptionLogService
                    .log(
                        e,
                        "Erro ao atualizar a lista de visitas. "
                            + "Tente executar uma atualiza��o manual.",
                        UserContext.getInstance()
                            .getUsuario().getNome(),
                        UserContext.getInstance()
                            .getTelecentro()
                            .getNome());
                ErrorView.show(eLog);
              }
            }
          }).start();

          MessageView.showSaveMessage();

          // voltar para a lista, por enquanto de usuario
          // TODO Implementar a pilha de chamadas
          Main.getInstance().buildPanel(UsuarioSearch.getInstance());

        } catch (ValidationException ex) {
          ValidationView.show(ex.getValidationList());
        } catch (PersistException ex) {
          ExceptionLog eLog = ExceptionLogService
              .log(ex, "Erro ao salvar a Visita", UserContext
                  .getInstance().getUsuario().getNome(),
                  UserContext.getInstance().getTelecentro()
                      .getNome());
          ErrorView.show(eLog);
View Full Code Here


    } catch (BusinessException ex) {
      MessageView.showWarning(ex.getMessage(),
          "Falha ao remover usu�rio.");
    } catch (Exception ex) {
      // TODO Implementar controle de exce��es
      ExceptionLog log = ExceptionLogService.log(ex,
          "Falha ao remover usu�rio.");
      ErrorView.show(log);
      ex.printStackTrace();
    }
    UsuarioSearch.getInstance().enableButtons(false);
View Full Code Here

          TurmaSearch.getInstance().refresh();
          Main.getInstance().buildPanel(CursoSearch.getInstance());

        } catch (PersistException pe) {
          // TODO Melhorar ContextMessage
          ExceptionLog eLog = ExceptionLogService
              .log(pe, "Erro no salvamento de Turma", UserContext
                  .getInstance().getUsuario().getNome(),
                  UserContext.getInstance().getTelecentro()
                      .getNome());
View Full Code Here

        // voltar para a lista
        Main.getInstance().buildPanel(CursoSearch.getInstance());
        // }
    } catch (PersistException pe) {
        // TODO Melhorar ContextMessage
        ExceptionLog eLog = ExceptionLogService
          .log(pe, "Erro no salvamento de Curso", UserContext
            .getInstance().getUsuario().getNome(),
            UserContext.getInstance().getTelecentro()
              .getNome());
View Full Code Here

      e.printStackTrace();     

      String msg = "Falha na persist�ncia do objeto do tipo "
          + p.getClass() + ". ";
      msg += p.getId() != null ? "Id do objeto: " + p.getId() : "";
      ExceptionLog log = ExceptionLogService.log(e, msg);

      throw new PersistException(log);
    }
    return this.persistent;
  }
View Full Code Here

      } else {
        throw new ValidationException(validationList);
      }
    } catch (NamingException e) {
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
    //TODO Trocar Exception por PersistException quando for resolvido o problema
    //da serializa��o de arrays no ejb 3
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }
     
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia do Equipamento.");
      throw new PersistException(log);
    }

    return equipamento;
View Full Code Here

      e.printStackTrace();     

      String msg = "Falha na persist�ncia do objeto do tipo "
          + p.getClass() + ". ";
      msg += p.getId() != null ? "Id do objeto: " + p.getId() : "";
      ExceptionLog log = ExceptionLogService.log(e, msg);

      throw new PersistException(log);
    }
    return this.persistent;
  }
View Full Code Here

      e.printStackTrace();     

      String msg = "Falha na persist�ncia do objeto do tipo "
          + p.getClass() + ". ";
      msg += p.getId() != null ? "Id do objeto: " + p.getId() : "";
      ExceptionLog log = ExceptionLogService.log(e, msg);

      throw new PersistException(log);
    }
    return this.persistent;
  }
View Full Code Here

      } else {
        throw new ValidationException(validationList);
      }
    } catch (NamingException e) {
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
      // TODO Trocar Exception por PersistException quando for resolvido o
      // problema
      // da serializa��o de arrays no ejb 3
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia de Conte�do.");
      throw new PersistException(log);
    }

    return conteudo;
View Full Code Here

          Main.getInstance().buildPanel(UsuarioSearch.getInstance());

        } catch (PersistException pe) {
          // TODO Melhorar ContextMessage
          ExceptionLog eLog = ExceptionLogService
              .log(pe, "Erro no salvamento de Usu�rio",
                  UserContext.getInstance().getUsuario()
                      .getNome(), UserContext
                      .getInstance().getTelecentro()
                      .getNome());
View Full Code Here

TOP

Related Classes of br.com.procempa.modus.entity.ExceptionLog

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.