Class CalendarException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.cuni.kubinja.hospitalsystem.calendar.CalendarException
- All Implemented Interfaces:
Serializable
Exception connected with the calendar and appointments.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringAppointment doest not meet the requirement of starting and ending at half or whole hours error messagestatic StringAppointment ends before starting error messagestatic StringAppointment exceed the opening hours of hospitalstatic StringStart and end time of appointment does not share same datestatic StringRequested information for department that is not present in hospital system.static StringDoctor has already another appointment in this time error messagestatic StringPatient has already another appointment in this time error messagestatic StringAppointment does not meet the requirement of minimal time error message -
Constructor Summary
ConstructorsConstructorDescriptionCalendarException(String message) Creates new calendar exception with the provided message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
invalidOrdering
Appointment ends before starting error message -
toShort
Appointment does not meet the requirement of minimal time error message -
invalidAlignment
Appointment doest not meet the requirement of starting and ending at half or whole hours error message -
invalidTimes
Appointment exceed the opening hours of hospital -
timeCollisionWithPatient
Patient has already another appointment in this time error message -
timeCollisionWIthDoctor
Doctor has already another appointment in this time error message -
notSameDay
Start and end time of appointment does not share same date -
notValidDepartment
Requested information for department that is not present in hospital system.
-
-
Constructor Details
-
CalendarException
Creates new calendar exception with the provided message.- Parameters:
message- Message of exception.
-