Class JKSecurityException

All Implemented Interfaces:
JKNonPrintableException, Serializable
Direct Known Subclasses:
JKAuthenticationException, JKAuthroizationException, JKDisabledUserException, JKInvalidTokenException, JKInvalidUserException, JKNotAllowedOperationException

public class JKSecurityException extends JKException implements JKNonPrintableException
This class represents exception thrown to indicate security-related issues in the application.

This exception is a subclass of JKException and implements JKNonPrintableException

This class should be used to represent situations where security violations or vulnerabilities are encountered.

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

    • JKSecurityException

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

    • JKSecurityException

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

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

      public JKSecurityException(String message)
      This method constructs a JKSecurityException with a specific error message.
      Parameters:
      message - Specifies the error message explaining the security-related issue.
    • JKSecurityException

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