ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
CrawlerExceptionLogger.php
Go to the documentation of this file.
1<?php
3
9{
10 protected $exceptions = array();
11
15 public function handleException(CrawlerException $ex)
16 {
17 $this->exceptions[] = $ex;
18 }
19
25 public function exceptions()
26 {
27 $return = $this->exceptions;
28 $this->exceptions = array();
29 return $return;
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
Sometimes we would like to store exception, instead of throwing them on spot, e.g.
exceptions()
Get all exception thrown sofar and reset the logger.
handleException(CrawlerException $ex)
Handle an exception request.