Class TutorScheduleOverlapsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.example.crmedu.domain.exception.TutorScheduleOverlapsException
All Implemented Interfaces:
Serializable

public class TutorScheduleOverlapsException extends RuntimeException
Exception thrown when a new schedule period overlaps with an existing one.
See Also:
  • Constructor Details

    • TutorScheduleOverlapsException

      public TutorScheduleOverlapsException(TutorSchedule newSchedule, TutorSchedule overlappedSchedule)
      Constructs a new TutorScheduleOverlapsException with a formatted message.
      Parameters:
      newSchedule - the new schedule attempting to be added
      overlappedSchedule - the existing schedule that causes the conflict