Class JKDataAccessException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JKDataAccessManyRowsException, JKDataAccessValidationException, JKRecordNotFoundException, PagingException

public class JKDataAccessException extends JKException
This class represents exception thrown to indicate an data access-related errors within the application.

This exception is a subclass of JKException.

This class should be used to represent situations where data access operations fail, encounter issues, or are denied due to various reasons.

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

    • JKDataAccessException

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

    • JKDataAccessException

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

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

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

    • add

      public void add(JKDataAccessException e)
      This method adds the specified error to a collection of data access-related errors that have occurred during the execution of the error that resulted in this JKDataAccessException.
      Parameters:
      e - Specifies the new added data access-related error.
    • isInvalidUsernamePassword

      public boolean isInvalidUsernamePassword()
      This method is yet To Be Implemented (TBI).

      The behavior, parameters, return value, and exceptions are subject to change in future implementations.

      Returns:
      To Be Implemented. (TBI)
    • isInvalidDatabaseName

      public boolean isInvalidDatabaseName()
      This method is yet To Be Implemented (TBI).

      The behavior, parameters, return value, and exceptions are subject to change in future implementations.

      Returns:
      To Be Implemented. (TBI)
    • isDuplicateKeyErrorCode

      public boolean isDuplicateKeyErrorCode()
      This method is yet To Be Implemented (TBI).

      The behavior, parameters, return value, and exceptions are subject to change in future implementations.

      Returns:
      To Be Implemented. (TBI)