Examples of EmptyNameException


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