Package com.jk.core.exceptions
Class JKDataAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jk.core.exceptions.JKException
com.jk.core.exceptions.JKDataAccessException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JKDataAccessManyRowsException
,JKDataAccessValidationException
,JKRecordNotFoundException
,PagingException
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 Summary
ConstructorsConstructorDescriptionThis method constructs a newJKDataAccessException
without any specified errors or causes.JKDataAccessException
(String message) This method constructs aJKDataAccessException
with a specific error message.JKDataAccessException
(String message, Throwable cause) This method constructs aJKDataAccessException
with a specific error message and a cause.JKDataAccessException
(Throwable cause) This method constructs aJKDataAccessException
with a cause. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 thisJKDataAccessException
.boolean
This method is yet To Be Implemented (TBI).boolean
This method is yet To Be Implemented (TBI).boolean
This method is yet To Be Implemented (TBI).Methods inherited from class com.jk.core.exceptions.JKException
isLogged, setLogged
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JKDataAccessException
public JKDataAccessException()This method constructs a newJKDataAccessException
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
This method constructs aJKDataAccessException
with a specific error message.- Parameters:
message
- Specifies the error message explaining the reason for the data access-related error.
-
JKDataAccessException
This method constructs aJKDataAccessException
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
This method constructs aJKDataAccessException
with a cause.- Parameters:
cause
- Specifies the cause of this exception.
-
-
Method Details
-
add
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 thisJKDataAccessException
.- 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)
-