Package ru.vassaev.core.exception

Examples of ru.vassaev.core.exception.SysRuntimeException


    sb.append("}");
    String query = sb.toString();
    cls = Classes.getCodeClass(new File(src_path)
    , new File(cls_path), pkgn, clsn, null, null, query);
    if (cls == null)
      throw new SysRuntimeException("Cannot created class");
    Method[] mds = cls.getMethods();
    for (Method m : mds) {
      String s = m.getName();
      if (s.equals("exec")) {
        mtd = m;
View Full Code Here


                setPrms(cp, prms, "post." + eq.substring(0, j), eq.substring(j + 1));
            }
          }
        } catch (IOException e) {
          e.printStackTrace();
          throw new SysRuntimeException(e);
        }

        String enc;
        try {
          enc = cntx.getPrmNvl("response.encoding", "UTF-8");
View Full Code Here

  private String name;

  public TimeThread(center.task.prm.Type tp, String owner, String name) {
    super(tp, owner);
    if (name == null)
      throw new SysRuntimeException("The param of theard's time hasn't name");
    this.name = name;
  }
View Full Code Here

      } finally {
        st.closeStatement(stm);
        Manager.freeConnection(con);
      }
    } catch(SysException ex) {
      throw new SysRuntimeException(ex);
    } finally {
      tl.addPointTime(TimeList.Type.END);
    }
  }
View Full Code Here

          obb = (cl <= 0) ? Process.getByteBuffer(8000, tis)
              : Process.getByteBuffer(8000, tis, cl);
        } catch (SysException e) {
          e.printStackTrace();
          tprc.interrupt();
          throw new SysRuntimeException(e);
        } finally {
          executor.free(tprc);
        }
        try {
          setPrms(cp, prms, "body", obb);
          if ("POST".equals(httpExchange.getRequestMethod())
              && ct != null
              && ct.indexOf("application/x-www-form-urlencoded") >= 0) {
            String enc;
            try {
              enc = cntx.getPrmNvl("request.encoding", "UTF-8");
              if (enc == null || enc.trim().length() == 0)
                enc = "UTF-8";
            } catch (SysException e2) {
              enc = "UTF-8";
            }
            StringBuffer sb = Strings.getStringBuffer(obb.getIS(),
                enc);
            setPrms(cp, prms, "postquery", sb);
            try {
              boolean parse_postquery = cntx.getPrmNvl(
                  "parse_postquery", false);
              if (parse_postquery) {
                String[] eqs = Strings.parseXVSLine(
                    sb.toString(), '/', '&');
                for (String eq : eqs) {
                  int j = eq.indexOf('=');
                  if (j >= 0)
                    setPrms(cp, prms,
                        "post." + eq.substring(0, j),
                        eq.substring(j + 1));
                }
              }
            } catch (SysException e1) {
              // TODO Auto-generated catch block
              e1.printStackTrace();
            }
          }
        } catch (IOException e) {
          e.printStackTrace();
          throw new SysRuntimeException(e);
        }

        String enc;
        try {
          enc = cntx.getPrmNvl("response.encoding", "UTF-8");
View Full Code Here

TOP

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

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.