Examples of PersistException


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

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

    return visita;
  }
View Full Code Here

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

    return visita;
  }
View Full Code Here

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

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

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

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

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

    return equipamento;
  }
View Full Code Here

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

  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

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

      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

Examples of org.sdnplatform.sync.error.PersistException

        this.dataSource = dataSource;

        try {
            initTable();
        } catch (SQLException sqle) {
            throw new PersistException("Could not initialize persistent storage",
                                       sqle);
        }
    }
View Full Code Here

Examples of org.sdnplatform.sync.error.PersistException

            dbConnection = getConnection();
            stmt = dbConnection.prepareStatement(getSql(SELECT_KEY));
            return doSelect(stmt, getKeyAsString(key));

        } catch (Exception e) {
            throw new PersistException("Could not retrieve key" +
                    " from database",
                    e);
        } finally {
            cleanupSQL(dbConnection, stmt);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.