Package exceptions

Class AttendanceException

All Implemented Interfaces:
Serializable

public class AttendanceException extends Exception
An exception class for attendance-related errors.
See Also:
  • Constructor Details

    • AttendanceException

      public AttendanceException(String message, Throwable cause)
      Constructs a new AttendanceException with the specified detail message and cause.
      Parameters:
      message - the detail message (which is saved for later retrieval by the getMessage() method)
      cause - the cause (which is saved for later retrieval by the getCause() method)
  • Method Details

    • throwError_ALREADY_CLOCKED_IN

      public static void throwError_ALREADY_CLOCKED_IN() throws AttendanceException
      Throws an AttendanceException for the case when a user is already clocked in.
      Throws:
      AttendanceException - the AttendanceException with the corresponding error message
    • throwError_NOT_CLOCKEDIN

      public static void throwError_NOT_CLOCKEDIN() throws AttendanceException
      Throws an AttendanceException for the case when a user is not yet clocked in.
      Throws:
      AttendanceException - the AttendanceException with the corresponding error message
    • throwError_ALREADY_CLOCKED_OUT

      public static void throwError_ALREADY_CLOCKED_OUT() throws AttendanceException
      Throws an AttendanceException for the case when a user is already clocked out.
      Throws:
      AttendanceException - the AttendanceException with the corresponding error message
    • throwError_NO_RECORD_FOUND

      public static void throwError_NO_RECORD_FOUND() throws AttendanceException
      Throws an AttendanceException for the case when no record is found.
      Throws:
      AttendanceException - the AttendanceException with the corresponding error message
    • throwError_INVALID_DATE

      public static void throwError_INVALID_DATE() throws AttendanceException
      Throws an AttendanceException for the case of an invalid date.
      Throws:
      AttendanceException - the AttendanceException with the corresponding error message