Class TooManyHitsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TooManyHitsException
    extends SystemException
    Exception thrown when a query returned more hits than set in the maxRecords property of the result list.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getActualHits()  
      int getAllowedHits()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • TooManyHitsException

        public TooManyHitsException​(int allowedHits,
                                    int actualHits)
        Parameters:
        allowedHits - allowed number of hits
        actualHits - actual number of hits
      • TooManyHitsException

        public TooManyHitsException​(int allowedHits)
        Parameters:
        allowedHits - allowed number of hits
    • Method Detail

      • getAllowedHits

        public int getAllowedHits()
        Returns:
        allowed number of hits
      • getActualHits

        public int getActualHits()
        Returns:
        actual number of hits or -1 if not available