Class IncorrectResultSetColumnCountException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.dao.DataRetrievalFailureException
org.springframework.data.cassandra.core.cql.IncorrectResultSetColumnCountException
- All Implemented Interfaces:
Serializable
Data access exception thrown when a result set did not have the correct column count, for example when expecting a
single column but getting 0 or more than 1 columns.
- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIncorrectResultSetColumnCountException
(int expectedCount, int actualCount) Constructor for IncorrectResultSetColumnCountException.IncorrectResultSetColumnCountException
(String msg, int expectedCount, int actualCount) Constructor for IncorrectResultCountDataAccessException. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the actual column count.int
Return the expected column count.Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IncorrectResultSetColumnCountException
public IncorrectResultSetColumnCountException(int expectedCount, int actualCount) Constructor for IncorrectResultSetColumnCountException.- Parameters:
expectedCount
- the expected column countactualCount
- the actual column count
-
IncorrectResultSetColumnCountException
Constructor for IncorrectResultCountDataAccessException.- Parameters:
msg
- the detail messageexpectedCount
- the expected column countactualCount
- the actual column count
-
-
Method Details
-
getExpectedCount
public int getExpectedCount()Return the expected column count. -
getActualCount
public int getActualCount()Return the actual column count.
-