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:
- 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 column.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionIncorrectResultSetColumnCountException(int expectedCount, int actualCount) Constructor for IncorrectResultSetColumnCountException.IncorrectResultSetColumnCountException(String msg, int expectedCount, int actualCount) Constructor for IncorrectResultCountDataAccessException.
- 
Method SummaryModifier and TypeMethodDescriptionintReturn the actual column count.intReturn the expected column count.Methods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
IncorrectResultSetColumnCountExceptionpublic IncorrectResultSetColumnCountException(int expectedCount, int actualCount) Constructor for IncorrectResultSetColumnCountException.- Parameters:
- expectedCount- the expected column count
- actualCount- the actual column count
 
- 
IncorrectResultSetColumnCountExceptionConstructor for IncorrectResultCountDataAccessException.- Parameters:
- msg- the detail message
- expectedCount- the expected column count
- actualCount- the actual column count
 
 
- 
- 
Method Details- 
getExpectedCountpublic int getExpectedCount()Return the expected column count.
- 
getActualCountpublic int getActualCount()Return the actual column count.
 
-