Class AuthenticationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ntu.fdae.group1.bto.exceptions.AuthenticationException
All Implemented Interfaces:
Serializable

public class AuthenticationException extends Exception
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 Details

    • AuthenticationException

      public AuthenticationException(String message)
      Constructs a new AuthenticationException with the specified detail message.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
    • AuthenticationException

      public AuthenticationException(String message, Throwable cause)
      Constructs a new AuthenticationException with the specified detail message and cause.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.