ILIAS  trunk Revision v5.2.0beta1-34115-g3a2438be29
ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger Class Reference

Sometimes we would like to store exception, instead of throwing them on spot, e.g. More...

+ Inheritance diagram for ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger:
+ Collaboration diagram for ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger:

Public Member Functions

 handleException (CrawlerException $ex)
 Handle an exception request. More...
 
 exceptions ()
 Get all exception thrown so far and reset the logger. More...
 

Protected Attributes

array $exceptions = array()
 

Detailed Description

Sometimes we would like to store exception, instead of throwing them on spot, e.g.

for the purpose of testing.

Definition at line 27 of file CrawlerExceptionLogger.php.

Member Function Documentation

◆ exceptions()

ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger::exceptions ( )

Get all exception thrown so far and reset the logger.

Returns
CrawlerException[] $return

Definition at line 44 of file CrawlerExceptionLogger.php.

References ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger\$exceptions.

Referenced by ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger\handleException().

44  : array
45  {
46  $return = $this->exceptions;
47  $this->exceptions = array();
48  return $return;
49  }
exceptions()
Get all exception thrown so far and reset the logger.
+ Here is the caller graph for this function:

◆ handleException()

ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger::handleException ( CrawlerException  $ex)

Handle an exception request.

Implements ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionHandler.

Definition at line 34 of file CrawlerExceptionLogger.php.

References ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger\exceptions().

34  : void
35  {
36  $this->exceptions[] = $ex;
37  }
exceptions()
Get all exception thrown so far and reset the logger.
+ Here is the call graph for this function:

Field Documentation

◆ $exceptions

array ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger::$exceptions = array()
protected

The documentation for this class was generated from the following file: