ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
All Data Structures Namespaces Files Functions Variables Typedefs Modules Pages
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 }
Sometimes we would like to store exception, instead of throwing them on spot, e.g.
handleException(CrawlerException $ex)
Handle an exception request.
exceptions()
Get all exception thrown sofar and reset the logger.