Package br.com.procempa.modus.entity

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


      } 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


          MessageView.showWarning(ex.getMessage(),
              "Falha ao remover o curso.");

        } catch (Exception e1) {
          // TODO Implementar controle de exce��es
          ExceptionLog log = ExceptionLogService.log(e1,
              "Falha ao remover curso");
          ErrorView.show(log);
          e1.printStackTrace();
        }
      }
View Full Code Here

import br.com.procempa.modus.services.ExceptionLogService;

public class ExceptionLogServiceTest extends TestCase {
 
  public void testUpdate() {
    ExceptionLog log = new ExceptionLog();
    log.setMessage("Teste de update de log");
    log = ExceptionLogService.log(log);
   
    log = ExceptionLogService.updateUserDescription(log,"ok");
   
    assertEquals("ok",log.getUserDescription());
  }
View Full Code Here

          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

      } 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 Curso.");
      throw new PersistException(log);
    }
    return curso;
  }
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

        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 Telecentro.");
      throw new PersistException(log);
    }
   
    return telecentro;
View Full Code Here

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

            setVisible(false);
          }

          MessageView.showSaveMessage();
        } catch (PersistException ex1) {
          ExceptionLog eLog = ExceptionLogService
              .log(ex1, "Erro ao salvar Telecentro", UserContext
                  .getInstance().getUsuario().getNome(),
                  UserContext.getInstance().getTelecentro()
                      .getNome());
          ErrorView.show(eLog);
        } catch (ValidationException ex2) {
          ValidationView.show(ex2.getValidationList());
        } catch (NamingException ex2) {
          ExceptionLog eLog = ExceptionLogService
              .log(ex2, "Falha ao obter o Telecentro",
                  UserContext.getInstance().getUsuario()
                      .getNome(), UserContext
                      .getInstance().getTelecentro()
                      .getNome());
          ErrorView.show(eLog);
        } catch (SearchException ex3) {
          ExceptionLog eLog = ExceptionLogService
          .log(ex3, "Falha na pesquisa do monitores",
              UserContext.getInstance().getUsuario()
                  .getNome(), UserContext
                  .getInstance().getTelecentro()
                  .getNome());
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 Turma.");
      throw new PersistException(log);
    }

    return turma;
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.