Package ru.vassaev.core.exception

Examples of ru.vassaev.core.exception.SysException


      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here


      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

            return null;
          ff.reset();
          try {
            ff.write(val);
          } catch (IOException e) {
            throw new SysException(e);
          }
          return ff.getTag(tag).getBytes(dec_enc);
        }
        int i = getIndexByKey(key);
        return ISO8583Msg.this.getField(i);
      } catch (UnsupportedEncodingException e) {
        throw new SysException(e);
      }
    }
View Full Code Here

        ISO8583Field ff = btff.get(i);
        ff.reset();
        ff.write(val);
        return ff.getValue();
      } catch (IOException e) {
        throw new SysException(e);
      }
    }
View Full Code Here

    try {
      ClassLoader CL = ClassLoader.getSystemClassLoader();
      cls = Class.forName(processor, true, CL);
      Object o = cls.newInstance();
      if (!(o instanceof AProcessor))
        throw new SysException("The class by name '" + processor + "' is not AProcessor");
    } catch (ClassNotFoundException e) {
      throw new SysException(e);
    } catch (IllegalAccessException e) {
      throw new SysException(e);
    } catch (InstantiationException e) {
      throw new SysException(e);
    }
    // Загрузить информацию о параметрах
    if (extend != null)
      prms = new TreeMap<String, Object>(extend.prms);
    else
View Full Code Here

  }
  public final AProcessor newProcessorInstance() throws SysException {
    try {
      return (AProcessor) cls.newInstance();
    } catch (IllegalAccessException e) {
      throw new SysException(e);
    } catch (InstantiationException e) {
      throw new SysException(e);
    }
  }
View Full Code Here

    }
    String fld;
    try {
      fld = new String(val, 0, len, character);
    } catch (UnsupportedEncodingException ex) {
      throw new SysException(ex);
    }
    int p = fld.indexOf('=');
    if (p >= 0)
      prms.setField(fld.substring(0, p), fld.substring(p + 1));
    else
View Full Code Here

          String extend = e.getAttribute("extends");
          TaskInfo ti_extend = null;
          if (extend != null && !"".equals(extend)) {
            ti_extend = hs.get(extend);
            if (ti_extend == null)
              new SysException("There is no extends \"" + extend + "\" for task " + e.getAttribute("cls"))
              .printStackTrace();
          }
          TaskInfo ti = new TaskInfo();
          ti.load(null, ti_extend, e);
          hs.put(ti.clsName, ti);
View Full Code Here

  }
  public void load(ATaskInfo parent, ATaskInfo extend, Element e) throws SysException {
    super.load(parent, extend, e);
    Element action = (Element) Strings.getXMLObject(e, "action");
    if (action == null)
      throw new SysException("Undefined element \"action\"");
    this.action = new Str(action, this);
    Element pcs = (Element) Strings.getXMLObject(e, "period-check-sec");
    if (pcs == null)
      throw new SysException("Undefined element \"period-check-sec\"");
    this.pcs = new Int(pcs, this);
    Element wait_finished = (Element) Strings.getXMLObject(e, "wait-finished");
    if (wait_finished == null)
      this.wait_finished = null;
    else
View Full Code Here

      return sb.substring(1);
    } else
      try {
        return new String(dta, hl, bl - hl, charset);
      } catch (UnsupportedEncodingException e) {
        throw new SysException(e);
      }
  }
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.