类 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
- 所有已实现的接口:
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.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
IncorrectResultSizeDataAccessException
, 序列化表格
构造器概要
构造器 构造器 说明 IncorrectResultSetColumnCountException(int expectedCount, int actualCount)
Constructor for IncorrectResultSetColumnCountException.IncorrectResultSetColumnCountException(String msg, int expectedCount, int actualCount)
Constructor for IncorrectResultCountDataAccessException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
getActualCount()
Return the actual column count.int
getExpectedCount()
Return the expected column count.从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
IncorrectResultSetColumnCountException
public IncorrectResultSetColumnCountException(int expectedCount, int actualCount)
Constructor for IncorrectResultSetColumnCountException.- 参数:
expectedCount
- the expected column countactualCount
- the actual column count
IncorrectResultSetColumnCountException
public IncorrectResultSetColumnCountException(String msg, int expectedCount, int actualCount)
Constructor for IncorrectResultCountDataAccessException.- 参数:
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.