java.lang.Object
java.lang.Throwable
java.lang.Exception
exceptions.SystemLoginException
- All Implemented Interfaces:
Serializable
An exception class for system login-related errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSystemLoginException(String message, Throwable cause) Constructs a new SystemLoginException with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThrows a SystemLoginException for the case of incorrect username or password.static voidThrows a SystemLoginException for the case of missing username or password.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SystemLoginException
Constructs a new SystemLoginException 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
-
throwLoginError_INCORRECT_USERNAME_OR_PASSWORD
Throws a SystemLoginException for the case of incorrect username or password.- Throws:
SystemLoginException- the SystemLoginException with the corresponding error message
-
throwLoginError_MISSING_USERNAME_OR_PASSWORD
Throws a SystemLoginException for the case of missing username or password.- Throws:
SystemLoginException- the SystemLoginException with the corresponding error message
-