Class JKDisabledUserException

All Implemented Interfaces:
JKNonPrintableException, Serializable

public class JKDisabledUserException extends JKSecurityException
This class represents exception thrown to indicate that a user account is disabled or inactive.

This exception is a subclass of JKSecurityException.

This class should be used to represent situations where an authentication attempt is made using a user account that is disabled or inactive.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
See Also:
  • Constructor Details

    • JKDisabledUserException

      public JKDisabledUserException()
      This method constructs a new JKDisabledUserException without any specified errors or causes.

      This constructor is typically used when the exception is thrown to represent a specific error condition without additional details.

    • JKDisabledUserException

      public JKDisabledUserException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      This method constructs a JKDisabledUserException with a specific error message, cause, suppression behavior, and stack trace writability.
      Parameters:
      message - Specifies the error message explaining the disabled user situation.
      cause - Specifies the cause of this exception.
      enableSuppression - Specifies whether suppression is enabled or disabled.
      writableStackTrace - Specifies whether the stack trace should be writable.
    • JKDisabledUserException

      public JKDisabledUserException(String message, Throwable cause)
      This method constructs a JKDisabledUserException with a specific error message and a cause.
      Parameters:
      message - Specifies the error message explaining the disabled user situation.
      cause - Specifies the cause of this exception.
    • JKDisabledUserException

      public JKDisabledUserException(String message)
      This method constructs a JKDisabledUserException with a specific error message.
      Parameters:
      message - Specifies the error message explaining the disabled user situation.
    • JKDisabledUserException

      public JKDisabledUserException(Throwable cause)
      This method constructs a JKDisabledUserException with a cause.
      Parameters:
      cause - Specifies the cause of this exception.
    • JKDisabledUserException

      public JKDisabledUserException(JKUser user)
      This method constructs a JKDisabledUserException with the disabled user.
      Parameters:
      user - Specifies the disabled user.
  • Method Details

    • getUser

      public JKUser getUser()
      This method gets the disabled user associated with this exception.
      Returns:
      the disabled user associated with this exception.