ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
CrawlerExceptionLogger.php
Go to the documentation of this file.
1
<?
php
2
namespace
ILIAS\UI\Implementation\Crawler\Exception
;
3
8
class
CrawlerExceptionLogger
implements
CrawlerExceptionHandler
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
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger
Sometimes we would like to store exception, instead of throwing them on spot, e.g.
Definition:
CrawlerExceptionLogger.php:9
ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger\exceptions
exceptions()
Get all exception thrown sofar and reset the logger.
Definition:
CrawlerExceptionLogger.php:25
ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger\$exceptions
$exceptions
Definition:
CrawlerExceptionLogger.php:10
ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionLogger\handleException
handleException(CrawlerException $ex)
Handle an exception request.
Definition:
CrawlerExceptionLogger.php:15
ILIAS\UI\Implementation\Crawler\Exception\CrawlerExceptionHandler
Handle Crawler exceptions.
Definition:
CrawlerExceptionHandler.php:8
ILIAS\UI\Implementation\Crawler\Exception
Definition:
CrawlerAssertion.php:5
src
UI
Implementation
Crawler
Exception
CrawlerExceptionLogger.php
Generated on Sat Oct 4 2025 19:01:27 for ILIAS by
1.9.4 (using
Doxyfile
)