Class JKNotAllowedOperationException

All Implemented Interfaces:
JKNonPrintableException, Serializable

public class JKNotAllowedOperationException extends JKSecurityException
This class represents exception thrown to indicate that a specific operation is not allowed or permitted in the current context.

This exception is a subclass of JKSecurityException.

This class should be used to represent situations where data access attempting a certain operation is not allowed due to the state or conditions of the program.

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

    • JKNotAllowedOperationException

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

    • JKNotAllowedOperationException

      public JKNotAllowedOperationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      This method constructs a JKNotAllowedOperationException with a specific error message, cause, suppression behavior, and stack trace writability.
      Parameters:
      message - Specifies the error message explaining the not allowed operation 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.
    • JKNotAllowedOperationException

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

      public JKNotAllowedOperationException(String message)
      This method constructs a JKNotAllowedOperationException with a specific error message.
      Parameters:
      message - Specifies the error message explaining the not allowed operation situation
    • JKNotAllowedOperationException

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