public class IncorrectResultSizeDataAccessException extends DataRetrievalFailureException
EmptyResultDataAccessException
,
Serialized FormModifier and Type | Field and Description |
---|---|
private int |
actualSize |
private int |
expectedSize |
Constructor and Description |
---|
IncorrectResultSizeDataAccessException(int expectedSize)
Constructor for IncorrectResultSizeDataAccessException.
|
IncorrectResultSizeDataAccessException(int expectedSize,
int actualSize)
Constructor for IncorrectResultSizeDataAccessException.
|
IncorrectResultSizeDataAccessException(java.lang.String msg,
int expectedSize)
Constructor for IncorrectResultSizeDataAccessException.
|
IncorrectResultSizeDataAccessException(java.lang.String msg,
int expectedSize,
int actualSize)
Constructor for IncorrectResultSizeDataAccessException.
|
IncorrectResultSizeDataAccessException(java.lang.String msg,
int expectedSize,
int actualSize,
java.lang.Throwable ex)
Constructor for IncorrectResultSizeDataAccessException.
|
IncorrectResultSizeDataAccessException(java.lang.String msg,
int expectedSize,
java.lang.Throwable ex)
Constructor for IncorrectResultSizeDataAccessException.
|
Modifier and Type | Method and Description |
---|---|
int |
getActualSize()
Return the actual result size (or -1 if unknown).
|
int |
getExpectedSize()
Return the expected result size.
|
contains, getMessage, getMostSpecificCause, getRootCause
public IncorrectResultSizeDataAccessException(int expectedSize)
expectedSize
- the expected result sizepublic IncorrectResultSizeDataAccessException(int expectedSize, int actualSize)
expectedSize
- the expected result sizeactualSize
- the actual result size (or -1 if unknown)public IncorrectResultSizeDataAccessException(java.lang.String msg, int expectedSize)
msg
- the detail messageexpectedSize
- the expected result sizepublic IncorrectResultSizeDataAccessException(java.lang.String msg, int expectedSize, java.lang.Throwable ex)
msg
- the detail messageexpectedSize
- the expected result sizeex
- the wrapped exceptionpublic IncorrectResultSizeDataAccessException(java.lang.String msg, int expectedSize, int actualSize)
msg
- the detail messageexpectedSize
- the expected result sizeactualSize
- the actual result size (or -1 if unknown)public IncorrectResultSizeDataAccessException(java.lang.String msg, int expectedSize, int actualSize, java.lang.Throwable ex)
msg
- the detail messageexpectedSize
- the expected result sizeactualSize
- the actual result size (or -1 if unknown)ex
- the wrapped exception