public class

IncorrectResultSetColumnCountException

extends DataRetrievalFailureException
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

Class Overview

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.

Summary

Public Constructors
IncorrectResultSetColumnCountException(int expectedCount, int actualCount)
Constructor for IncorrectResultSetColumnCountException.
IncorrectResultSetColumnCountException(String msg, int expectedCount, int actualCount)
Constructor for IncorrectResultCountDataAccessException.
Public Methods
int getActualCount()
Return the actual column count.
int getExpectedCount()
Return the expected column count.
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public IncorrectResultSetColumnCountException (int expectedCount, int actualCount)

Constructor for IncorrectResultSetColumnCountException.

Parameters
expectedCount the expected column count
actualCount the actual column count

public IncorrectResultSetColumnCountException (String msg, int expectedCount, int actualCount)

Constructor for IncorrectResultCountDataAccessException.

Parameters
msg the detail message
expectedCount the expected column count
actualCount the actual column count

Public Methods

public int getActualCount ()

Return the actual column count.

public int getExpectedCount ()

Return the expected column count.