Package com.saperion.ngc.exception
Class TooManyHitsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.saperion.ngc.exception.NgcException
com.saperion.ngc.exception.SystemException
com.saperion.ngc.exception.TooManyHitsException
- All Implemented Interfaces:
Serializable
Exception thrown when a query returned more hits than set in the
maxRecords property of the result list.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTooManyHitsException
(int allowedHits) TooManyHitsException
(int allowedHits, int actualHits) -
Method Summary
Methods inherited from class com.saperion.ngc.exception.SystemException
getLogMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TooManyHitsException
public TooManyHitsException(int allowedHits, int actualHits) - Parameters:
allowedHits
- allowed number of hitsactualHits
- 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
-