Examples of SysRuntimeException


Examples of ru.vassaev.core.exception.SysRuntimeException

  private Object name;

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

Examples of ru.vassaev.core.exception.SysRuntimeException

  public SysProp(center.task.prm.Type tp, String owner, Element e) {
    super(tp, owner);
    name = Prm.getPrm(e);
    if (Null.equ(name))
      throw new SysRuntimeException("The system param hasn't name");
  }
View Full Code Here

Examples of ru.vassaev.core.exception.SysRuntimeException

    super(tp, owner);
    equals = new HashMap<String, Object>();
    equals_full_scan = new HashMap<Prm, Object>();
    sw = Prm.getPrmChild(e, "sw");
    if (Null.equ(sw))
      throw new SysRuntimeException("There is no 'sw' tag");
    NodeList le = Xml.getElementsByTagName(e, "case");
    for (int i = le.getLength() - 1; i >= 0; i--) {
      Element c = (Element) le.item(i);
      Attr akey = c.getAttributeNode("value");
      if (akey != null) {
View Full Code Here

Examples of ru.vassaev.core.exception.SysRuntimeException

              v = m.getValue();
              if (v instanceof Prm)
                try {
                  return ((Prm) v).getObject(cntx);
                } catch (SysException e) {
                  throw new SysRuntimeException(e);
                }
              return v;
            }
          } catch (SysException e) {
            e.printStackTrace(); // TODO To change body of catch statement use
View Full Code Here

Examples of ru.vassaev.core.exception.SysRuntimeException

        GZIPOutputStream os = new GZIPOutputStream(res, sizeBuffer);
        Bytes.copyStream(is, os, res.getBufferSize());
        os.close();
        return res;
      } else
        throw new SysRuntimeException("The source's type isn't supported:"
                + v.getClass().getCanonicalName());
  }
View Full Code Here

Examples of ru.vassaev.core.exception.SysRuntimeException

      Bytes.copyStream(is, res, res.getBufferSize());
      res.close();
      is.close();
      return res;
    } else
      throw new SysRuntimeException("The source's type isn't supported:"
              + v.getClass().getCanonicalName());
  }
View Full Code Here

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

Examples of ru.vassaev.core.exception.SysRuntimeException

                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

Examples of ru.vassaev.core.exception.SysRuntimeException

  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

Examples of ru.vassaev.core.exception.SysRuntimeException

      } finally {
        st.closeStatement(stm);
        Manager.freeConnection(con);
      }
    } catch(SysException ex) {
      throw new SysRuntimeException(ex);
    } finally {
      tl.addPointTime(TimeList.Type.END);
    }
  }
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.