Package exceptions

Class UserRecordsException

All Implemented Interfaces:
Serializable

public class UserRecordsException extends Exception
An exception class for user records-related errors.
See Also:
  • Constructor Details

    • UserRecordsException

      public UserRecordsException(String message, Throwable cause)
      Constructs a new UserRecordsException 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_NO_RECORD_FOUND

      public static void throwError_NO_RECORD_FOUND() throws UserRecordsException
      Throws a UserRecordsException for the case of no record found.
      Throws:
      UserRecordsException - the UserRecordsException with the corresponding error message
    • throwError_PASSWORD_MISMATCH

      public static void throwError_PASSWORD_MISMATCH() throws UserRecordsException
      Throws a UserRecordsException for the case of password mismatch.
      Throws:
      UserRecordsException - the UserRecordsException with the corresponding error message
    • throwError_SAME_PASSWORD

      public static void throwError_SAME_PASSWORD() throws UserRecordsException
      Throws a UserRecordsException for the case of the new password being the same as the old password.
      Throws:
      UserRecordsException - the UserRecordsException with the corresponding error message
    • throwError_NOTHING_TO_UPDATE

      public static void throwError_NOTHING_TO_UPDATE() throws UserRecordsException
      Throws a UserRecordsException for the case of nothing to update.
      Throws:
      UserRecordsException - the UserRecordsException with the corresponding error message