ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilTestException.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once 'Services/Exceptions/classes/class.ilException.php';
5
15{
16 public function __construct($msg = '', $code = 0)
17 {
18 if (!strlen($msg)) {
19 $msg = get_class($this);
20 }
21
22 parent::__construct($msg, $code);
23 }
24}
An exception for terminatinating execution or to throw for unit testing.
Base class for ILIAS Exception handling.
Base Exception for all Exceptions relating to Modules/Test.
__construct($msg='', $code=0)
A message isn't optional as in build in class Exception.
$code
Definition: example_050.php:99