private void validatePerPage(int perPage){
  if (perPage > maxResults) {
    String msg=String.format("Number of rows requested exceeds request limit of %d",maxResults);
    throw new RowLimitReachedException(msg);
  }
}

private void validatePerPage ( int perPage ) { if ( perPage > maxResults ) { String msg = String . format ( "Number of rows requested exceeds request limit of %d" , maxResults ) ; throw new RowLimitReachedException ( msg ) ; } }
check if perpage exceeds limit of max number of rows to be returned .
