Package civquest.parser.ruleset.exception

Examples of civquest.parser.ruleset.exception.MissingFieldException


  }

  private boolean getInfoOn(Section section) throws RulesetException {
    Field infoOnField = section.getField("infoOn");
    if (infoOnField == null) {
      throw new MissingFieldException(section, "infoOn",
                      "Happened in Messages.getInfoOn");
    } else if (!infoOnField.isBoolValue()) {
      throw new InvalidFieldValueException(infoOnField, "Bool",
                         "Happ1ened in Messages.getInfoOn");
    } else {
View Full Code Here


  // interprets errorDests-field.
  private void setErrorDests(Section settingsSection, Map dests) throws RulesetException {
    Field errorField = settingsSection.getField("errorDests");

    if (errorField == null) {
      throw new MissingFieldException(settingsSection, "errorDests",
                      "Happened within Messages.setErrorDests");
    } else {
      errDests = new Destination[errorField.getNumberOfValues()];
      for (int n = 0; n < errorField.getNumberOfValues(); n++) {
        if (!errorField.isStringValue(n)) {
View Full Code Here

    public Field getField(String name, String commentIfFail)
    throws RulesetException {
   
    if (!fields.containsKey(name)) {
      throw new MissingFieldException(this, name, commentIfFail);
    } else {
      return fields.get(name);
    }
  }
View Full Code Here

TOP

Related Classes of civquest.parser.ruleset.exception.MissingFieldException

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.