Package net.sourceforge.syncyoursecrets.util

Examples of net.sourceforge.syncyoursecrets.util.SysRuntimeException


      if (PWTableEditor.KEY_COLUMN.equals(property)) {
        return tEntry.getName();
      } else if (PWTableEditor.VALUE_COLUMN.equals(property)) {
        return tEntry.getContent();
      } else {
        throw new SysRuntimeException(
            "Invalid attempt to get value for unknown property "
                + property);
      }

    }
View Full Code Here


        try {
          tEntry.setContent((String) value);
        } catch (ElementDeletedException ex) {
          String msg = "Entry was already deleted and should not be shown here, this is a bug";
          logger.fatal(msg, ex);
          throw new SysRuntimeException(msg, ex);
        }
      } else {
        throw new SysRuntimeException(
            "Invalid attempt to modify unknown property "
                + property);
      }
      this.pwTableEditor.refresh();
    } else {
      throw new SysRuntimeException(
          "Invalid attempt to modify an unknown object " + element);
    }

  }
View Full Code Here

      case 1:
        return tEntry.getContent();

      default:
        throw new SysRuntimeException(
            "Invalid attempt to get text from column "
                + columnIndex + ". This is a bug, sorry.");
      }

    }
View Full Code Here

      viewer.refresh();
    } catch (SysGenericException ex) {
      String msg = "Creating table entry failed, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }
    logger.debug("exiting addTableEntry");
  }
View Full Code Here

      this.setLastModified(this.getCreated());
      this.setId(createUid());
    } catch (SysInvalidArgumentException ex) {
      String msg = "Cannot execute createNow, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }
    logger.trace("exiting createNow");
  }
View Full Code Here

      this.setLastModified(new DateTime());
      this.setName(null);
    } catch (SysInvalidArgumentException ex) {
      String msg = "Cannot execute delete, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }
    logger.debug("exiting delete");
  }
View Full Code Here

      this.setLastAction(ACTIONS.UPDATE);
      this.setLastModified(new DateTime());
    } catch (SysInvalidArgumentException ex) {
      String msg = "Cannot execute modify, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }

    logger.trace("exiting modify");
  }
View Full Code Here

    try {
      SingletonHolder.getContentProvider().addEntry();
    } catch (Exception e) {
      String msg = "Failed to add a new element, this is a bug";

      throw new SysRuntimeException(msg, e);
    }
    SingletonHolder.getView().selectEntry();

    logger.debug("exiting execute");
    return null;
View Full Code Here

    try {
      this.list = new PWList();
    } catch (SysInvalidArgumentException ex) {
      String msg = "Cannot instantiate PWList, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }

  }
View Full Code Here

    try {
      this.list = new PWList();
    } catch (SysInvalidArgumentException ex) {
      String msg = "Cannot instantiate PWList, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }

    this.filePw = null;
    this.openedFile = null;
View Full Code Here

TOP

Related Classes of net.sourceforge.syncyoursecrets.util.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.