Package 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.error.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
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 exceptionpageCount
- Total number of pages in the report- Since:
- 6.0
-
PageOutOfRangeException
public 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.- Parameters:
page
- Number of page requested, which caused the exceptionpageCount
- Total number of pages in the reportstopCause
- optional cause of stopping- Since:
- 16.1
-
-