Package ru.vassaev.core.exception

Examples of ru.vassaev.core.exception.SysException


          ex.printStackTrace();
          attempt--;
          if (attempt > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } catch (Exception ex) {
          throw new SysException(ex);
        }
    } finally {
      Manager.freeConnection(con);
    }
  }
View Full Code Here


          ex.printStackTrace();
          attempt--;
          if (attempt > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        }

      sql = "select u.id from tasks u \n" + "where u.id=? and \n"
          + "u.processor_id=?";
      attempt = 2;
      while (true)
        try {
          pst = con.prepareStatement(sql);
          pst.setLong(1, id);
          pst.setLong(2, subject_id);
          try {
            ResultSet rs = pst.executeQuery();
            if (rs.next()) {
              id_task = id;
            } else {
              id_task = 0L;
            }
            rs.close();
          } finally {
            pst.close();
          }
          break;
        } catch (SQLException ex) {
          ex.printStackTrace();
          attempt--;
          if (attempt > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        }
      return id_task;
    } catch (SysException ex) {
      throw ex;
    } finally {
View Full Code Here

          ex.printStackTrace();
          trying--;
          if (trying > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } catch (Exception ex) {
          throw new SysException(ex);
        } finally {
          stmtLog.freeStatement(pst);
        }
      }
    } finally {
View Full Code Here

          ex.printStackTrace();
          trying--;
          if (trying > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } catch (Exception ex) {
          throw new SysException(ex);
        } finally {
          stmtWait.freeStatement(pst);
        }
      }
    } finally {
View Full Code Here

          ex.printStackTrace();
          attempt--;
          if (attempt > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } catch (SQLException ex) {
          ex.printStackTrace();
          attempt--;
          if (attempt > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } finally {
          if (st != null)
            stmtSetBlocked.freeStatement(st);
          if (pst != null)
            stmtListForBlocked.freeStatement(pst);
View Full Code Here

          ex.printStackTrace();
          attempt--;
          if (attempt > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } catch (SQLException ex) {
          ex.printStackTrace();
          attempt--;
          if (attempt > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } finally {
          if (st != null) {
            stmtSetBlockedForProcessor.freeStatement(st);
          }
        }
View Full Code Here

          ex.printStackTrace();
          trying--;
          if (trying > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } catch (Exception ex) {
          throw new SysException(ex);
        }
    } finally {
      Manager.freeConnection(con);
    }
  }
View Full Code Here

          ex.printStackTrace();
          trying--;
          if (trying > 0) {
            con = Manager.reInitConnection(con);
          } else
            throw new SysException(ex);
        } catch (Exception ex) {
          throw new SysException(ex);
        }
    } finally {
      Manager.freeConnection(con);
    }
    return null;
View Full Code Here

      } finally {
        fnd.close();
        wr.close();
      }
    } catch (Exception ex) {
      throw new SysException(ex);
    } finally {
      Manager.freeConnection(con);
    }
  }
View Full Code Here

        log(subject_id, 0, "Class by name " + s + " was added for searching");
      }
      con.commit();
      st.close();
    } catch (SQLException e1) {
      throw new SysException(e1);
    } finally {
      pool.free(con);
    }
  }
View Full Code Here

TOP

Related Classes of ru.vassaev.core.exception.SysException

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.