Class TutorScheduleOverlapsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.example.crmedu.domain.exception.TutorScheduleOverlapsException
- All Implemented Interfaces:
Serializable
Exception thrown when a new schedule period overlaps with an existing one.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTutorScheduleOverlapsException
(TutorSchedule newSchedule, TutorSchedule overlappedSchedule) Constructs a newTutorScheduleOverlapsException
with a formatted message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TutorScheduleOverlapsException
Constructs a newTutorScheduleOverlapsException
with a formatted message.- Parameters:
newSchedule
- the new schedule attempting to be addedoverlappedSchedule
- the existing schedule that causes the conflict
-