i-net Clear Reports

com.inet.report.cache
Class PageOutOfRangeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.inet.report.ReportException
              extended by com.inet.report.cache.PageOutOfRangeException
All Implemented Interfaces:
com.inet.viewer.HasErrorCode, java.io.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:
Serialized Form

Field Summary
 
Fields inherited from class com.inet.report.ReportException
messageId, msg
 
Constructor Summary
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.
 
Method Summary
 int getPage()
          Get the requested page number.
 int getPageCount()
          Get the highest legal page number.
 
Methods inherited from class com.inet.report.ReportException
getErrorCode, setCause, toString
 

Constructor Detail

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
Method Detail

getPage

public final int getPage()
Get the requested page number.

Returns:
the requested page that is out of range

getPageCount

public final int getPageCount()
Get the highest legal page number.

Returns:
available pages

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH