7    $renderer = 
$DIC->ui()->renderer();
 
    8    $url = 
$DIC->http()->request()->getRequestTarget();
 
   10    $parameter_name = 
'page';
 
   11    $current_page = (int) @
$_GET[$parameter_name];
 
   13    $pagination = 
$factory->viewControl()->pagination()
 
   14        ->withTargetURL(
$url, $parameter_name)
 
   15        ->withTotalEntries(98)
 
   17        ->withCurrentPage($current_page);
 
   19    $start = $pagination->getOffset();
 
   20    $stop = 
$start + $pagination->getPageLength();
 
   21    $result = 
"entries $start to $stop";
 
   22    return $renderer->render($pagination)
 
An exception for terminatinating execution or to throw for unit testing.