Package service.exception

Examples of service.exception.AlreadyRegisteredException


    public void register(User user, T appointment, User responsibleUser) throws RegisterPeriodOverException, AlreadyRegisteredException, MaximumMemberCountExceededException, NotAllowedException, AppointmentNotFoundException {
        List<User> st = getRegisteredUsers(appointment, user);
        appointment = getRealAppointment1(appointment);

        if (st.contains(user)) {
            throw new AlreadyRegisteredException();
        }

        if (appointment.getRegisterStart().after(new Date()) || appointment.getRegisterEnd().before(new Date())) { //nach dem heutigen Tag -> Anmeldung noch nicht begonnen
            throw new RegisterPeriodOverException();
        }
View Full Code Here

TOP

Related Classes of service.exception.AlreadyRegisteredException

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.