Class DeletionBlockedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.equipmentrental.equipment_rental_system.exception.DeletionBlockedException
- All Implemented Interfaces:
Serializable
Thrown when an entity cannot be deleted because it has dependent records.
Covers BR-06 (category with assigned equipment) and BR-07 (equipment with active bookings).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeletionBlockedException(String entityName, String reason) Creates a new exception explaining why deletion was blocked. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DeletionBlockedException
-