Class JKAssertionException

All Implemented Interfaces:
Serializable

public class JKAssertionException extends JKException
This class represents exception thrown to indicate an assertion failure within the application.

This exception is a subclass of JKException.

This class should be used to represent situations where an assertion or condition in the code fails unexpectedly.

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

    • JKAssertionException

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

    • JKAssertionException

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

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

      public JKAssertionException(String message)
      This method constructs a JKAssertionException with a specific error message.
      Parameters:
      message - Specifies the error message explaining the reason for the assertion failure.
    • JKAssertionException

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