java.lang.Object
java.lang.Throwable
java.lang.Exception
exceptions.UserRecordsException
- All Implemented Interfaces:
Serializable
An exception class for user records-related errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserRecordsException
(String message, Throwable cause) Constructs a new UserRecordsException with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Throws a UserRecordsException for the case of no record found.static void
Throws a UserRecordsException for the case of nothing to update.static void
Throws a UserRecordsException for the case of password mismatch.static void
Throws a UserRecordsException for the case of the new password being the same as the old password.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UserRecordsException
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
Throws a UserRecordsException for the case of no record found.- Throws:
UserRecordsException
- the UserRecordsException with the corresponding error message
-
throwError_PASSWORD_MISMATCH
Throws a UserRecordsException for the case of password mismatch.- Throws:
UserRecordsException
- the UserRecordsException with the corresponding error message
-
throwError_SAME_PASSWORD
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
Throws a UserRecordsException for the case of nothing to update.- Throws:
UserRecordsException
- the UserRecordsException with the corresponding error message
-