Class TooManyHitsException

All Implemented Interfaces:
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:
  • Constructor Details

    • 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 Details

    • getAllowedHits

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

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