Examples of SysRuntimeException


Examples of net.sourceforge.syncyoursecrets.util.SysRuntimeException

      viewer.refresh();

    } catch (SysGenericException ex) {
      String msg = "Cannot create new PWEntry, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }

    logger.debug("exiting addEntry");
  }
View Full Code Here

Examples of net.sourceforge.syncyoursecrets.util.SysRuntimeException

      list.add(entry);
      viewer.refresh();
    } catch (SysInvalidArgumentException ex) {
      String msg = "Cannot create new PWTable, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }
    logger.debug("exiting addTable");
  }
View Full Code Here

Examples of net.sourceforge.syncyoursecrets.util.SysRuntimeException

  public static PWListContentProvider getContentProvider() {
    if (myView != null) {
      return myView.getContentProvider();
    } else {
      throw new SysRuntimeException(
          "Viewer not initialized yet, cannot yield contentProvider");
    }
  }
View Full Code Here

Examples of net.sourceforge.syncyoursecrets.util.SysRuntimeException

        this.email.setText(entry.getEmail());
      } catch (ElementDeletedException e) {
        // should not happen, as we check for deleted before
        String msg = "The updated element was already deleted, this is a bug";
        logger.fatal(msg, e);
        throw new SysRuntimeException(msg, e);
      }

    }
    this.listenerEnabled = true;
    this.getView().refresh();
View Full Code Here

Examples of net.sourceforge.syncyoursecrets.util.SysRuntimeException

          entry.setEmail(this.email.getText());
          setPartName(this.name.getText());
        } catch (ElementDeletedException e) {
          String msg = ("Accessing deleted entry. This is a bug");
          logger.fatal(msg);
          throw new SysRuntimeException(msg, e);
        }

      }
    } else {
      logger.trace("Skipping updateEntry");
View Full Code Here

Examples of net.sourceforge.syncyoursecrets.util.SysRuntimeException

      addStringProperty(REMARK);
      addStringProperty(EMAIL);
    } catch (SysInvalidArgumentException e) {
      String msg = "Failed to initialize children, this is a bug";
      logger.fatal(msg, e);
      throw new SysRuntimeException(msg, e);
    }
    logger.trace("exiting initChildren");

  }
View Full Code Here

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

Examples of ru.vassaev.core.exception.SysRuntimeException

    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

Examples of ru.vassaev.core.exception.SysRuntimeException

 
  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

Examples of ru.vassaev.core.exception.SysRuntimeException

  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
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.