public class PageOutOfRangeException extends ReportException
Constructor and Description |
---|
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.
|
PageOutOfRangeException(int page,
int pageCount,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
int |
getPage()
Get the requested page number.
|
int |
getPageCount()
Get the highest legal page number.
|
getErrorCode, setCause, toString
public PageOutOfRangeException(int page, int pageCount)
page
- Number of page requested, which caused the exceptionpageCount
- Total number of pages in the reportpublic PageOutOfRangeException(int page, int pageCount, java.lang.String stopCause)
page
- Number of page requested, which caused the exceptionpageCount
- Total number of pages in the reportstopCause
- optional cause of stoppingCopyright © 1999-2020 by i-net software GmbH