org.springframework.dao
Class IncorrectResultSizeDataAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.InvalidDataAccessApiUsageException
org.springframework.dao.IncorrectResultSizeDataAccessException
- All Implemented Interfaces:
- Serializable
- public class IncorrectResultSizeDataAccessException
- extends InvalidDataAccessApiUsageException
Data access exception thrown when a result was not of the expected size,
for example when expecting a single row but getting 0 or more than 1 rows.
- Since:
- 26.05.2004
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
IncorrectResultSizeDataAccessException
public IncorrectResultSizeDataAccessException(int expectedSize,
int actualSize)
- Constructor for IncorrectResultSizeDataAccessException.
- Parameters:
expectedSize
- the expected result sizeactualSize
- the actual result size (or -1 if unknown)
IncorrectResultSizeDataAccessException
public IncorrectResultSizeDataAccessException(String msg,
int expectedSize,
int actualSize)
- Constructor for IncorrectResultSizeDataAccessException.
- Parameters:
msg
- messageexpectedSize
- the expected result sizeactualSize
- the actual result size (or -1 if unknown)
getExpectedSize
public int getExpectedSize()
- Return the expected result size.
getActualSize
public int getActualSize()
- Return the actual result size (or -1 if unknown).
Copyright (C) 2003-2004 The Spring Framework Project.