Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ntu.fdae.group1.bto.exceptions.AuthenticationException
- All Implemented Interfaces:
Serializable
Exception thrown for errors related to user authentication in the BTO system.
This exception is used to indicate problems that occur during the login process, credential verification, or session management. It encapsulates security-related errors that may affect a user's ability to access the system.
Common scenarios where this exception might be thrown include:- Invalid username or password
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationException
(String message) Constructs a new AuthenticationException with the specified detail message.AuthenticationException
(String message, Throwable cause) Constructs a new AuthenticationException with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationException
Constructs a new AuthenticationException with the specified detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method)
-
AuthenticationException
Constructs a new AuthenticationException with the specified detail message and cause.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method)cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). Anull
value is permitted, and indicates that the cause is nonexistent or unknown.
-