Class JKAuthenticationException

All Implemented Interfaces:
JKNonPrintableException, Serializable

public class JKAuthenticationException extends JKSecurityException
This class represents exception thrown to indicate an authentication-related errors within the application

This exception is a subclass of JKSecurityException.

This class should be used to represent situations where authentication fails, access is denied, or authentication-related processes encounter issues

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

    • JKAuthenticationException

      public JKAuthenticationException()
      This method constructs a new JKAuthenticationException 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.

    • JKAuthenticationException

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

      public JKAuthenticationException(String message, Throwable cause)
      This method constructs a JKAuthenticationException with a specific error message and a cause.
      Parameters:
      message - Specifies the error message explaining the reason for the authentication-related error.
      cause - Specifies the cause of this exception.
    • JKAuthenticationException

      public JKAuthenticationException(String message)
      This method constructs a JKAuthenticationException with a specific error message.
      Parameters:
      message - Specifies the error message explaining the reason for the authentication-related error.
    • JKAuthenticationException

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