Package javaEffect

Examples of javaEffect.ErrNotFountOrMistake


          && c.lastName.equalsIgnoreCase(lastName)) {
        return c;
      }
    }

    throw new ErrNotFountOrMistake("Character not found");
  }
View Full Code Here


        } else if (character.getAttributeValue("race")
            .equalsIgnoreCase("Krogan")) {
          npg = new Krogan(character.getAttributeValue("firstName"),
              character.getAttributeValue("lastName"));
        } else {
          throw new ErrNotFountOrMistake("The race of the character "
              + character.getAttributeValue("firstName") + " "
              + character.getAttributeValue("lastName")
              + " is undefined or misdefined in the xml file.");
        }

        if (npg != null) {
          try {
            Planet.getPlanet(character.getAttributeValue("planet"))
                .addCharacter(npg);
          } catch (DataFormatException e) {
            e.printStackTrace();
          }
        }

      } else {

        if (Character
            .getCharacter(character.getAttributeValue("firstName"),
                character.getAttributeValue("lastName"))
            .getRace()
            .equalsIgnoreCase(character.getAttributeValue("race"))) {
          npg = Character.getCharacter(
              character.getAttributeValue("firstName"),
              character.getAttributeValue("lastName"));
        } else {
          throw new ErrNotFountOrMistake("The race " +  character.getAttributeValue("race") + " of the character "
              + character.getAttributeValue("firstName") + " "
              + character.getAttributeValue("lastName")
              + " is undefined or misdefined in the xml file.");
        }
View Full Code Here

      if (target.getAttributeValue("id").equals(id + "")) {
        return target.getChild("title").getText();
      }
    }

    throw new ErrNotFountOrMistake("Mission " + id + " not found");
  }
View Full Code Here

      if (target.getAttributeValue("id").equals(id + "")) {
        return target.getChild("text").getText();
      }
    }

    throw new ErrNotFountOrMistake("Mission " + id + " not found");
  }
View Full Code Here

          }
        }
      }
    }

    throw new ErrNotFountOrMistake(firstName + " " + lastName
        + " have no text ID n�" + textId + " to say");
  }
View Full Code Here

    for (Planet p : planetList) {
      if (p.getName().equalsIgnoreCase(name)) {
        return p;
      }
    }
    throw new ErrNotFountOrMistake(name + " not found");
  }
View Full Code Here

TOP

Related Classes of javaEffect.ErrNotFountOrMistake

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.