Package br.com.procempa.modus.session.exceptions

Examples of br.com.procempa.modus.session.exceptions.PersistException


     
    } 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


      }
    } 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 da Visita.");
      throw new PersistException(log);
    }

    return visita;
  }
View Full Code Here

      }
    } 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 da Visita.");
      throw new PersistException(log);
    }

    return visita;
  }
View Full Code Here

      // Por enquanto, imprimindo o trace
      // Retirado ap�s o teste do ExceptionLogger
      e.printStackTrace();

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

      }
    } catch (NamingException ne) {
      ne.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(ne,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
    } catch (SearchException se) {
      se.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(se,
          "Falha na busca de usu�rio");
      throw new PersistException(log);
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia de Usu�rio.");
      throw new PersistException(log);
    }

    return usuario;
  }
View Full Code Here

      }
    } 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

  public Persistent persist(Persistent p) throws PersistException {
    try {
      this.persistent = this.em.merge(p);
    } catch (Exception e) {
      throw new PersistException(e.getMessage());
    }
    return this.persistent;
  }
View Full Code Here

      Logger.getLogger("Modus").info("Iniciando a persistencia...");
      this.persistent = this.em.merge(p);
      Logger.getLogger("Modus").info("Persistencia realizada...");
    } catch (Exception e) {
      e.printStackTrace();
      throw new PersistException(e.getMessage());
    }
    return this.persistent;
  }
View Full Code Here

TOP

Related Classes of br.com.procempa.modus.session.exceptions.PersistException

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.