Class RoomStillHasReservationsException

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

@ResponseStatus(value=CONFLICT, reason="The request was rejected because the room still has active reservations.") public class RoomStillHasReservationsException extends de.gustavblass.commons.exceptions.IllegalArgumentException
Indicates that the Room cannot be deleted because it still has active Reservations.
See Also:
  • Field Details

    • reservationCount

      private final int reservationCount
      How many Reservations are still active for the Actor concerned.
  • Constructor Details

    • RoomStillHasReservationsException

      public RoomStillHasReservationsException(int reservationCount)
    • RoomStillHasReservationsException

      public RoomStillHasReservationsException(String message, int reservationCount)
    • RoomStillHasReservationsException

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

      public RoomStillHasReservationsException(Throwable cause, int reservationCount)