ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
exception.ilDatabaseException.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
27
class
ilDatabaseException
extends
ilException
28
{
29
public
const
DB_GENERAL
= 10000;
30
31
32
public
function
__construct
(
string
$a_message,
int
$a_code = self::DB_GENERAL)
33
{
34
$a_message = $this->
tranlateException
($a_code) . $a_message;
35
parent::__construct
($a_message, $a_code);
36
}
37
38
39
protected
function
tranlateException
(
int
$code): string
40
{
41
$message
=
'An undefined Database Exception occured'
;
42
if
($code === static::DB_GENERAL) {
43
$message
=
'An undefined Database Exception occured'
;
44
}
45
46
return
$message
.
'. '
;
47
}
48
}
ilException
ilDatabaseException\__construct
__construct(string $a_message, int $a_code=self::DB_GENERAL)
Definition:
exception.ilDatabaseException.php:32
ilDatabaseException
ilDatabaseException\tranlateException
tranlateException(int $code)
Definition:
exception.ilDatabaseException.php:39
ilDatabaseException\DB_GENERAL
const DB_GENERAL
Definition:
exception.ilDatabaseException.php:29
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
$message
$message
Definition:
xapiexit.php:31
components
ILIAS
Database
exceptions
exception.ilDatabaseException.php
Generated on Sun Aug 31 2025 23:02:47 for ILIAS by
1.8.13 (using
Doxyfile
)