org.springframework.jdbc
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.jdbc.IncorrectResultSetColumnCountException
- All Implemented Interfaces:
- java.io.Serializable
public class IncorrectResultSetColumnCountException
- extends 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.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
IncorrectResultSizeDataAccessException
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
expectedCount
private int expectedCount
actualCount
private int actualCount
IncorrectResultSetColumnCountException
public IncorrectResultSetColumnCountException(int expectedCount,
int actualCount)
- Constructor for IncorrectResultSetColumnCountException.
- Parameters:
expectedCount
- the expected column countactualCount
- the actual column count
IncorrectResultSetColumnCountException
public IncorrectResultSetColumnCountException(java.lang.String msg,
int expectedCount,
int actualCount)
- Constructor for IncorrectResultCountDataAccessException.
- Parameters:
msg
- the detail messageexpectedCount
- the expected column countactualCount
- the actual column count
getExpectedCount
public int getExpectedCount()
- Return the expected column count.
getActualCount
public int getActualCount()
- Return the actual column count.