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.dao.IncorrectResultSizeDataAccessException |
Known Direct Subclasses |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for IncorrectResultSizeDataAccessException.
| |||||||||||
Constructor for IncorrectResultSizeDataAccessException.
| |||||||||||
Constructor for IncorrectResultSizeDataAccessException.
| |||||||||||
Constructor for IncorrectResultSizeDataAccessException.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the actual result size (or -1 if unknown).
| |||||||||||
Return the expected result size.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.NestedRuntimeException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Constructor for IncorrectResultSizeDataAccessException.
expectedSize | the expected result size |
---|
Constructor for IncorrectResultSizeDataAccessException.
expectedSize | the expected result size |
---|---|
actualSize | the actual result size (or -1 if unknown) |
Constructor for IncorrectResultSizeDataAccessException.
msg | the detail message |
---|---|
expectedSize | the expected result size |
Constructor for IncorrectResultSizeDataAccessException.
msg | the detail message |
---|---|
expectedSize | the expected result size |
actualSize | the actual result size (or -1 if unknown) |
Return the actual result size (or -1 if unknown).
Return the expected result size.