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:
- java.io.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
Fields inherited from class java.lang.RuntimeException |
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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(java.lang.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.