info.magnolia.module.rssaggregator.util
Class IncorrectResultSizeDataAccessException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by info.magnolia.module.rssaggregator.util.DataAccessException
                  extended by 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

Constructor Summary
IncorrectResultSizeDataAccessException(int expectedSize)
          Construct a new IncorrectResultSizeDataAccessException.
IncorrectResultSizeDataAccessException(int expectedSize, int actualSize)
          Construct a new IncorrectResultSizeDataAccessException.
 
Method Summary
 int getActualSize()
           
 int getExpectedSize()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 size
actualSize - the actual result size (or -1 if unknown)
Method Detail

getExpectedSize

public int getExpectedSize()

getActualSize

public int getActualSize()


Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.