Class SaTooManyResultsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SaTooManyResultsException
    extends SaSystemException
    This exception is thrown when a query returned more results than allowed.
    Author:
    cmerkel
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAllowedMaxResults()  
      • 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

      • SaTooManyResultsException

        public SaTooManyResultsException​(java.lang.String errorMessage,
                                         int allowedMaxResults)
        Constructor.
        Parameters:
        errorMessage - the error message
        allowedMaxResults - the maximum number of allowed results
      • SaTooManyResultsException

        public SaTooManyResultsException​(java.lang.String errorMessage,
                                         java.lang.Throwable cause,
                                         int allowedMaxResults)
        Constructor.
        Parameters:
        errorMessage - the error message
        cause - the causing exception
        allowedMaxResults - the maximum number of allowed results
      • SaTooManyResultsException

        public SaTooManyResultsException​(java.lang.Throwable cause,
                                         int allowedMaxResults)
        Constructor.
        Parameters:
        cause - the causing exception
        allowedMaxResults - the maximum number of allowed results
    • Method Detail

      • getAllowedMaxResults

        public int getAllowedMaxResults()
        Returns:
        the maximum number of allowed results