Class ReservationPeriodTooBigException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.gustavblass.commons.exceptions.IllegalArgumentException
de.gustavblass.fsu.fmi.roombooking.exceptions.ReservationPeriodTooBigException
- All Implemented Interfaces:
Serializable
@ResponseStatus(value=BAD_REQUEST,
reason="The request to book a room was rejected because the start time and end time are too far apart.")
public class ReservationPeriodTooBigException
extends de.gustavblass.commons.exceptions.IllegalArgumentException
Indicates that the
Reservation cannot be placed because the Reservation.startDate and Reservation.endDate are
too far apart.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DurationThe time difference between theReservation.startDateandReservation.endDate. -
Constructor Summary
ConstructorsConstructorDescriptionReservationPeriodTooBigException(String message, Throwable cause, Duration duration) ReservationPeriodTooBigException(String message, Duration duration) SeeException(String).ReservationPeriodTooBigException(Throwable cause, Duration duration) SeeException(Throwable).ReservationPeriodTooBigException(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
-
ReservationPeriodTooBigException
SeeException(). -
ReservationPeriodTooBigException
SeeException(String). -
ReservationPeriodTooBigException
-
ReservationPeriodTooBigException
SeeException(Throwable).
-