Package org.example.crmedu.domain.exception
package org.example.crmedu.domain.exception
This package contains all exceptions that may arise in the business logic of the application.
The EntityExistsException
class represents an error that occurs when an entity with the given field(s) already exists in the system. The
EntityNotFoundException
class represents an error that occurs when an entity with the given ID does not exist in the system. The
TutorScheduleOverlapsException
class represents an error that occurs when a user tries to add or update a schedule that overlaps with an existing
one.
-
Exception ClassesClassDescriptionException thrown when an entity with a unique field constraint already exists.Exception thrown when an entity with a specific id is not found.Exception thrown when a new schedule period overlaps with an existing one.