| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.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
public class IncorrectResultSetColumnCountException
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.
IncorrectResultSizeDataAccessException, 
Serialized Form| Constructor Summary | |
|---|---|
IncorrectResultSetColumnCountException(int expectedCount,
                                       int actualCount)
Constructor for IncorrectResultSetColumnCountException.  | 
|
IncorrectResultSetColumnCountException(String msg,
                                       int expectedCount,
                                       int actualCount)
Constructor for IncorrectResultCountDataAccessException.  | 
|
| Method Summary | |
|---|---|
 int | 
getActualCount()
Return the actual column count.  | 
 int | 
getExpectedCount()
Return the expected column count.  | 
| Methods inherited from class org.springframework.core.NestedRuntimeException | 
|---|
contains, getMessage, getMostSpecificCause, getRootCause | 
| 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 | 
| Constructor Detail | 
|---|
public IncorrectResultSetColumnCountException(int expectedCount,
                                              int actualCount)
expectedCount - the expected column countactualCount - the actual column count
public IncorrectResultSetColumnCountException(String msg,
                                              int expectedCount,
                                              int actualCount)
msg - the detail messageexpectedCount - the expected column countactualCount - the actual column count| Method Detail | 
|---|
public int getExpectedCount()
public int getActualCount()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||