Class BookingConflictException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.equipmentrental.equipment_rental_system.exception.BookingConflictException
All Implemented Interfaces:
Serializable

public class BookingConflictException extends RuntimeException
Thrown when a new booking conflicts with an existing confirmed booking for the same equipment item (BR-02). The date ranges overlap and the reservation cannot proceed.
See Also:
  • Constructor Details

    • BookingConflictException

      public BookingConflictException(String equipmentName, String dateFrom, String dateTo)
      Creates a new exception describing the conflict.
      Parameters:
      equipmentName - the name of the equipment item
      dateFrom - the requested start date
      dateTo - the requested end date