Class CalendarException

java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.cuni.kubinja.hospitalsystem.calendar.CalendarException
All Implemented Interfaces:
Serializable

public class CalendarException extends Exception
Exception connected with the calendar and appointments.
See Also:
  • Field Details

    • invalidOrdering

      public static String invalidOrdering
      Appointment ends before starting error message
    • toShort

      public static String toShort
      Appointment does not meet the requirement of minimal time error message
    • invalidAlignment

      public static String invalidAlignment
      Appointment doest not meet the requirement of starting and ending at half or whole hours error message
    • invalidTimes

      public static String invalidTimes
      Appointment exceed the opening hours of hospital
    • timeCollisionWithPatient

      public static String timeCollisionWithPatient
      Patient has already another appointment in this time error message
    • timeCollisionWIthDoctor

      public static String timeCollisionWIthDoctor
      Doctor has already another appointment in this time error message
    • notSameDay

      public static String notSameDay
      Start and end time of appointment does not share same date
    • notValidDepartment

      public static String notValidDepartment
      Requested information for department that is not present in hospital system.
  • Constructor Details

    • CalendarException

      public CalendarException(String message)
      Creates new calendar exception with the provided message.
      Parameters:
      message - Message of exception.