com.inet.report.cache
Class PageOutOfRangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.inet.report.ReportException
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
|
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. |
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 exceptionpageCount - Total number of pages in the report
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
Copyright © 1999-2011 by i-net software GmbH