Class IncorrectResultSetColumnCountException

All Implemented Interfaces:
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:
  • Constructor Details

    • IncorrectResultSetColumnCountException

      public IncorrectResultSetColumnCountException(int expectedCount, int actualCount)
      Constructor for IncorrectResultSetColumnCountException.
      Parameters:
      expectedCount - the expected column count
      actualCount - the actual column count
    • IncorrectResultSetColumnCountException

      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
  • Method Details

    • getExpectedCount

      public int getExpectedCount()
      Return the expected column count.
    • getActualCount

      public int getActualCount()
      Return the actual column count.