Class PaginationNotFoundException

  • All Implemented Interfaces:
    Serializable

    public class PaginationNotFoundException
    extends RuntimeException
    Throws when the target index is not found during pagination.
    Since:
    1.7
    Author:
    Jack Yin
    See Also:
    Serialized Form
    • Constructor Detail

      • PaginationNotFoundException

        public PaginationNotFoundException​(int targetIndex,
                                           List<Integer> scannedIndices)
        Constructs an instance with the target index to find and actual scanned indices list.
        Parameters:
        targetIndex - the target index tried to find but actually not found
        scannedIndices - the scanned indices list
    • Method Detail

      • getTargetIndex

        public int getTargetIndex()
        Gets the target index to find
        Returns:
        the target index to find
      • getScannedIndices

        public List<Integer> getScannedIndices()
        Gets the scanned index list
        Returns:
        the scanned index list