spring-framework / org.springframework.jdbc / IncorrectResultSetColumnCountException

IncorrectResultSetColumnCountException

open class IncorrectResultSetColumnCountException : DataRetrievalFailureException

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.

Author
Juergen Hoeller

Since
2.0

See Also
org.springframework.dao.IncorrectResultSizeDataAccessException

Constructors

<init>

IncorrectResultSetColumnCountException(expectedCount: Int, actualCount: Int)

Constructor for IncorrectResultSetColumnCountException.

IncorrectResultSetColumnCountException(msg: String, expectedCount: Int, actualCount: Int)

Constructor for IncorrectResultCountDataAccessException.

Functions

getActualCount

open fun getActualCount(): Int

Return the actual column count.

getExpectedCount

open fun getExpectedCount(): Int

Return the expected column count.