ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
20 $msg = get_class($this);
21 }
22
23 parent::__construct($msg, $code);
24 }
25}
26
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