Package com.jk.data.exceptions
Class JKDataAccessManyRowsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jk.core.exceptions.JKException
com.jk.core.exceptions.JKDataAccessException
com.jk.data.exceptions.JKDataAccessManyRowsException
- All Implemented Interfaces:
Serializable
This class represents exception thrown when a data access operation returns
more rows than expected.
This exception is a subclass of JKDataAccessException
.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newJKDataAccessManyRowsException
without any specified errors or causes.JKDataAccessManyRowsException
(String message) This method constructs aJKDataAccessManyRowsException
with a specific error message.JKDataAccessManyRowsException
(String queryString, Object[] paramters) This method constructs aJKDataAccessManyRowsException
with a query string and associated parameters.JKDataAccessManyRowsException
(String message, Throwable cause) This method constructs aJKDataAccessManyRowsException
with a specific error message and a cause.This method constructs aJKDataAccessManyRowsException
with a cause. -
Method Summary
Methods inherited from class com.jk.core.exceptions.JKDataAccessException
add, isDuplicateKeyErrorCode, isInvalidDatabaseName, isInvalidUsernamePassword
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
-
JKDataAccessManyRowsException
public JKDataAccessManyRowsException()This method constructs a newJKDataAccessManyRowsException
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.
-
JKDataAccessManyRowsException
This method constructs aJKDataAccessManyRowsException
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.
-
JKDataAccessManyRowsException
This method constructs aJKDataAccessManyRowsException
with a specific error message.- Parameters:
message
- Specifies the error message explaining the reason for this exception.
-
JKDataAccessManyRowsException
This method constructs aJKDataAccessManyRowsException
with a cause.- Parameters:
cause
- Specifies the cause of this exception.
-
JKDataAccessManyRowsException
This method constructs aJKDataAccessManyRowsException
with a query string and associated parameters.- Parameters:
queryString
- Specifies the query string that caused the exception.paramters
- Specifies the parameters used in the query.
-