Class ReservationPeriodTooSmallException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.gustavblass.commons.exceptions.IllegalArgumentException
de.gustavblass.fsu.fmi.roombooking.exceptions.ReservationPeriodTooSmallException
- All Implemented Interfaces:
Serializable
@ResponseStatus(value=BAD_REQUEST,
reason="The request to book a room was rejected because the end time comes too close after the start time.")
public class ReservationPeriodTooSmallException
extends de.gustavblass.commons.exceptions.IllegalArgumentException
Indicates that the
Reservation cannot be placed because the Reservation.endDate comes too soon after the
Reservation.startDate.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DurationThe time difference between theReservation.startDateandReservation.endDate. -
Constructor Summary
ConstructorsConstructorDescriptionReservationPeriodTooSmallException(String message, Throwable cause, Duration duration) ReservationPeriodTooSmallException(String message, Duration duration) SeeException(String).ReservationPeriodTooSmallException(Throwable cause, Duration duration) SeeException(Throwable).ReservationPeriodTooSmallException(Duration duration) SeeException(). -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
duration
The time difference between theReservation.startDateandReservation.endDate.
-
-
Constructor Details
-
ReservationPeriodTooSmallException
SeeException(). -
ReservationPeriodTooSmallException
SeeException(String). -
ReservationPeriodTooSmallException
-
ReservationPeriodTooSmallException
SeeException(Throwable).
-