Class PageOutOfRangeException

All Implemented Interfaces:
com.inet.error.HasErrorCode, Serializable

public class PageOutOfRangeException extends ReportException
This exception is thrown if a page is requested with a page number larger than the total number of pages, or is less than 0.
See Also:
  • Constructor Details

    • PageOutOfRangeException

      public PageOutOfRangeException(int page, int pageCount)
      Creates a PageOutOfRangeException which is thrown if a page is requested with a page number larger than the total number of pages, or is less than 0.
      Parameters:
      page - Number of page requested, which caused the exception
      pageCount - Total number of pages in the report
      Since:
      6.0
    • PageOutOfRangeException

      public PageOutOfRangeException(int page, int pageCount, String stopCause)
      Creates a PageOutOfRangeException which is thrown if a page is requested with a page number larger than the total number of pages, or is less than 0.
      Parameters:
      page - Number of page requested, which caused the exception
      pageCount - Total number of pages in the report
      stopCause - optional cause of stopping
      Since:
      16.1
  • Method Details

    • getPage

      public final int getPage()
      Get the requested page number.
      Returns:
      the requested page that is out of range
      Since:
      6.0
    • getPageCount

      public final int getPageCount()
      Get the highest legal page number.
      Returns:
      available pages
      Since:
      6.0