Package com.saperion.exception
Class SaTooManyResultsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.saperion.exception.SaBasicException
com.saperion.exception.SaSystemException
com.saperion.exception.SaTooManyResultsException
- All Implemented Interfaces:
Serializable
This exception is thrown when a query returned more results than allowed.
- Author:
- cmerkel
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSaTooManyResultsException(String errorMessage, int allowedMaxResults) Constructor.SaTooManyResultsException(String errorMessage, Throwable cause, int allowedMaxResults) Constructor.SaTooManyResultsException(Throwable cause, int allowedMaxResults) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SaTooManyResultsException
Constructor.- Parameters:
errorMessage- the error messageallowedMaxResults- the maximum number of allowed results
-
SaTooManyResultsException
Constructor.- Parameters:
errorMessage- the error messagecause- the causing exceptionallowedMaxResults- the maximum number of allowed results
-
SaTooManyResultsException
Constructor.- Parameters:
cause- the causing exceptionallowedMaxResults- the maximum number of allowed results
-
-
Method Details
-
getAllowedMaxResults
public int getAllowedMaxResults()- Returns:
- the maximum number of allowed results
-