Package controller.exceptions

Examples of controller.exceptions.EmptyNameException


  public Person(LinkedList<String> firstName, String lastName, Date birthday,
      LinkedList<TelephoneNumber> mobilNumber, LinkedList<Email> email,
      Group group, LinkedList<PositionInformation> positionInformation) throws EmptyNameException{
    if (firstName == null || lastName == null || firstName.isEmpty() ||
        firstName.getFirst().equals("") || lastName.equals("")){
      throw new EmptyNameException();        //<== EXIT
    }
    this.firstName = firstName;
    this.lastName = lastName;
    if (birthday != null){
      this.birthday = birthday;
View Full Code Here

TOP

Related Classes of controller.exceptions.EmptyNameException

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.