info.magnolia.module.rssaggregator.util
Class IncorrectResultSizeDataAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
info.magnolia.module.rssaggregator.util.DataAccessException
info.magnolia.module.rssaggregator.util.IncorrectResultSizeDataAccessException
- All Implemented Interfaces:
- Serializable
public class IncorrectResultSizeDataAccessException
- extends DataAccessException
Data access exception thrown when a result was not of the expected size, for example when expecting a single content
node but getting 0 or more than 1.
- Author:
- Rob van der Linden Vooren
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
IncorrectResultSizeDataAccessException
public IncorrectResultSizeDataAccessException(int expectedSize)
- Construct a new IncorrectResultSizeDataAccessException.
- Parameters:
expectedSize
- the expected result size
IncorrectResultSizeDataAccessException
public IncorrectResultSizeDataAccessException(int expectedSize,
int actualSize)
- Construct a new IncorrectResultSizeDataAccessException.
- Parameters:
expectedSize
- the expected result sizeactualSize
- the actual result size (or -1 if unknown)
getExpectedSize
public int getExpectedSize()
getActualSize
public int getActualSize()
Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.