Class JKException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidaNameException, JKAssertionException, JKDataAccessException, JKHttpException, JKReportException, JKSecurityException, JKServerDownException, JKServiceClientException, JKTemplateException, JKTimeoutException, JKValidationException, JKXmlException

public class JKException extends RuntimeException
This class represents exceptions thrown to indicate that an error occurred within the application.

This exception is a subclass of RuntimeException.

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

    • JKException

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

    • JKException

      public JKException(String message)
      This method constructs a JKException with a specific error message.
      Parameters:
      message - Specifies the error message explaining the reason for this exception.
    • JKException

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

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

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

    • isLogged

      public boolean isLogged()
      This method checks whether this exception is logged or not.
      Returns:
      true, if is logged, false otherwise.
    • setLogged

      public void setLogged(boolean logged)
      This method specifies whether this exception is logged or not.
      Parameters:
      logged - Specifies whether this exception is logged or not.