Class DatabaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.cuni.kubinja.hospitalsystem.database.DatabaseException
- All Implemented Interfaces:
Serializable
Custom exception connected with the database queries errors tailored for the hospital system.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFailure to delete appointment from the database error messagestatic final StringFailure of querying appointments from database error messagestatic final StringFailure of inserting appointment into database error messagestatic final StringFailure to update appointments data to the database error messagestatic final StringFailure to delete doctor from the database error messagestatic final StringFailure of querying doctor from database error messagestatic final StringFailure of inserting doctor into database error messagestatic final StringFailure to update doctor data to the database error messagestatic final StringFails to delete data from database error messagestatic final StringType of person that is retrieved from database by id is not same as expected typestatic final StringFailure of opening/creating databasestatic final StringFailure to delete patient from the database error messagestatic final StringFailure of querying patients from database error messagestatic final StringFailure of inserting patient into database error messagestatic final StringFailure to update patient data to the database error messagestatic final StringFailure of querying person from database error message -
Constructor Summary
ConstructorsConstructorDescriptionDatabaseException(String message) Creates databaseException with the provided message.DatabaseException(String... parts) Creates databaseException with the provided message parts.DatabaseException(String message1, String message2) Creates databaseException with the provided messages. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
openingDatabaseError
-
patientInsertDatabaseError
Failure of inserting patient into database error message- See Also:
-
doctorInsertDatabaseError
Failure of inserting doctor into database error message- See Also:
-
appointmentInsertDatabaseError
Failure of inserting appointment into database error message- See Also:
-
personGetDatabaseError
Failure of querying person from database error message- See Also:
-
patientGetDatabaseError
Failure of querying patients from database error message- See Also:
-
doctorGetDatabaseError
Failure of querying doctor from database error message- See Also:
-
appointmentGetDatabaseError
Failure of querying appointments from database error message- See Also:
-
patientUpdateDatabaseError
Failure to update patient data to the database error message- See Also:
-
doctorUpdateDatabaseError
Failure to update doctor data to the database error message- See Also:
-
appointmentUpdateDatabaseError
Failure to update appointments data to the database error message- See Also:
-
patientDeleteDatabaseError
Failure to delete patient from the database error message- See Also:
-
doctorDeleteDatabaseError
Failure to delete doctor from the database error message- See Also:
-
appointmentDeleteDatabaseError
Failure to delete appointment from the database error message- See Also:
-
generalDeleteDatabaseError
Fails to delete data from database error message- See Also:
-
invalidTypeOfPersonDatabaseError
Type of person that is retrieved from database by id is not same as expected type- See Also:
-
-
Constructor Details
-
DatabaseException
Creates databaseException with the provided message.- Parameters:
message- Message of the databaseException.
-
DatabaseException
-
DatabaseException
Creates databaseException with the provided message parts. (Concatenates parts into one message)- Parameters:
parts- Parts of the message.
-