ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilTestException.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
31 public function __construct($msg = '', $code = 0)
32 {
33 if (!strlen($msg)) {
34 $msg = get_class($this);
35 }
36
37 parent::__construct($msg, $code);
38 }
39}
Base class for ILIAS Exception handling.
Base Exception for all Exceptions relating to Modules/Test.
__construct($msg='', $code=0)
A code isn't optional as in build in class Exception.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc