Package ru.vassaev.core.exception

Examples of ru.vassaev.core.exception.SysRuntimeException


      Object o = Context.this.info.getPrmInfo(gl_name);
      log = true;
      if (o != null && o instanceof IDependentParam)
        log = ((IDependentParam) o).getLog();
      if (gl_name == null || gl_name.length() == 0)
        throw new SysRuntimeException("Parameter can't be named as \"null\"");
    }
View Full Code Here


    if (e.hasAttribute("prcpool")) {
      prcpool = e.getAttribute("prcpool");
      try {
        prcs = (PoolThread) ApplicationManager.getPoolByName(prcpool, Process.class);
      } catch (SysException e1) {
        throw new SysRuntimeException("There is no pool by name '" + prcpool + "'");
      }
    } else
      throw new SysRuntimeException("There is no prcpool attribute");
    if (e.hasAttribute("wait")) {
      try {
        wait = Strings.parseIntegerNvl(e.getAttribute("wait"), 10000);
      } catch (NumberFormatException e1) {
        throw new SysRuntimeException("Attribute by name 'wait' isn't correct", e1);
      }
    } else
      wait = 10000;
    def = (Element) Strings.getXMLObject(e, "default");
  }
View Full Code Here

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

  public IProcessor newInstance() {
    IProcessor prc;
    try {
      prc = getClass().newInstance();
    } catch (InstantiationException e) {
      throw new SysRuntimeException(e);
    } catch (IllegalAccessException e) {
      throw new SysRuntimeException(e);
    }
    return prc;
  }
View Full Code Here

  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

  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

    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

              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

        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

      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

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.