ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
◀ ilDoc Overview
ilDclInputException.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilDclInputException
extends
ilException
22
{
23
public
const
TYPE_EXCEPTION
= 0;
24
public
const
LENGTH_EXCEPTION
= 1;
25
public
const
REGEX_EXCEPTION
= 2;
26
public
const
UNIQUE_EXCEPTION
= 3;
27
public
const
NOT_URL
= 4;
28
public
const
REGEX_CONFIG_EXCEPTION
= 8;
29
protected
ilLanguage
$lng
;
30
protected
int
$exception_type
;
31
32
public
function
__construct
(
int
$exception_type
)
33
{
34
global
$DIC
;
35
$this->
lng
= $DIC->language();
36
37
$this->exception_type =
$exception_type
;
38
parent::__construct
($this->
__toString
(), $exception_type);
39
}
40
41
public
function
__toString
(): string
42
{
43
switch
($this->exception_type) {
44
case
self::TYPE_EXCEPTION
:
45
return
$this->
lng
->txt(
'dcl_wrong_input_type'
);
46
case
self::LENGTH_EXCEPTION
:
47
return
$this->
lng
->txt(
'dcl_wrong_length'
);
48
case
self::REGEX_EXCEPTION
:
49
return
$this->
lng
->txt(
'dcl_wrong_regex'
);
50
case
self::REGEX_CONFIG_EXCEPTION
:
51
return
$this->
lng
->txt(
'dcl_invalid_regex_config'
);
52
case
self::UNIQUE_EXCEPTION
:
53
return
$this->
lng
->txt(
'dcl_unique_exception'
);
54
case
self::NOT_URL
:
55
return
$this->
lng
->txt(
'dcl_noturl_exception'
);
56
default
:
57
return
$this->
lng
->txt(
'dcl_unknown_exception'
);
58
}
59
}
60
}
ilDclInputException
Definition:
ilDclInputException.php:22
ilDclInputException\REGEX_CONFIG_EXCEPTION
const REGEX_CONFIG_EXCEPTION
Definition:
ilDclInputException.php:28
ilDclInputException\REGEX_EXCEPTION
const REGEX_EXCEPTION
Definition:
ilDclInputException.php:25
ilDclInputException\__toString
__toString()
Definition:
ilDclInputException.php:41
ilDclInputException\$lng
ilLanguage $lng
Definition:
ilDclInputException.php:29
ilDclInputException\UNIQUE_EXCEPTION
const UNIQUE_EXCEPTION
Definition:
ilDclInputException.php:26
ilDclInputException\LENGTH_EXCEPTION
const LENGTH_EXCEPTION
Definition:
ilDclInputException.php:24
ilDclInputException\$exception_type
int $exception_type
Definition:
ilDclInputException.php:30
ilDclInputException\TYPE_EXCEPTION
const TYPE_EXCEPTION
Definition:
ilDclInputException.php:23
ilDclInputException\NOT_URL
const NOT_URL
Definition:
ilDclInputException.php:27
ilDclInputException\__construct
__construct(int $exception_type)
Definition:
ilDclInputException.php:32
ilException
Base class for ILIAS Exception handling.
Definition:
class.ilException.php:26
ilLanguage
language handling
Definition:
class.ilLanguage.php:43
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
DataCollection
exceptions
ilDclInputException.php
Generated on Sat Dec 13 2025 23:02:14 for ILIAS by
1.9.4 (using
Doxyfile
)