Class ConflictingReservationsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.gustavblass.commons.exceptions.IllegalArgumentException
de.gustavblass.fsu.fmi.roombooking.exceptions.ConflictingReservationsException
All Implemented Interfaces:
Serializable

@ResponseStatus(value=CONFLICT, reason="The request to book a room was rejected because there already is at least one reservation for the time period.") public class ConflictingReservationsException extends de.gustavblass.commons.exceptions.IllegalArgumentException
Indicates that the Reservation cannot be placed because there is already at least one reservation for the Reservation.room between Reservation.startDate and Reservation.endDate.
See Also:
  • Field Details

  • Constructor Details

    • ConflictingReservationsException

      public ConflictingReservationsException(int reservationCount)
    • ConflictingReservationsException

      public ConflictingReservationsException(String message, int reservationCount)
    • ConflictingReservationsException

      public ConflictingReservationsException(String message, Throwable cause, int reservationCount)
    • ConflictingReservationsException

      public ConflictingReservationsException(Throwable cause, int reservationCount)