Class ActorStillHasReservationsException

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

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

    • reservationCount

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

    • ActorStillHasReservationsException

      public ActorStillHasReservationsException(int reservationCount)
    • ActorStillHasReservationsException

      public ActorStillHasReservationsException(String message, int reservationCount)
    • ActorStillHasReservationsException

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

      public ActorStillHasReservationsException(Throwable cause, int reservationCount)