1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
ArgumentOutOfRangeException.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Main;
4
8
class
ArgumentOutOfRangeException
extends
ArgumentException
9
{
10
protected
$lowerLimit
;
11
protected
$upperLimit
;
12
21
public
function
__construct
(
$parameter
,
$lowerLimit
=
null
,
$upperLimit
=
null
, \Throwable $previous =
null
)
22
{
23
if
(is_array(
$lowerLimit
))
24
{
25
$message
=
"The value of an argument '{$parameter}' is outside the allowable range of values: "
. implode(
", "
,
$lowerLimit
);
26
}
27
elseif
((
$lowerLimit
!==
null
) && (
$upperLimit
!==
null
))
28
{
29
$message
=
"The value of an argument '{$parameter}' is outside the allowable range of values: from {$lowerLimit} to {$upperLimit}"
;
30
}
31
elseif
((
$lowerLimit
===
null
) && (
$upperLimit
!==
null
))
32
{
33
$message
=
"The value of an argument '{$parameter}' is outside the allowable range of values: not greater than {$upperLimit}"
;
34
}
35
elseif
((
$lowerLimit
!==
null
) && (
$upperLimit
===
null
))
36
{
37
$message
=
"The value of an argument '{$parameter}' is outside the allowable range of values: not less than {$lowerLimit}"
;
38
}
39
else
40
{
41
$message
=
"The value of an argument '{$parameter}' is outside the allowable range of values"
;
42
}
43
44
$this->lowerLimit =
$lowerLimit
;
45
$this->upperLimit =
$upperLimit
;
46
47
parent::__construct(
$message
,
$parameter
, $previous);
48
}
49
50
public
function
getLowerLimitType
()
51
{
52
return
$this->lowerLimit
;
53
}
54
55
public
function
getUpperType
()
56
{
57
return
$this->upperLimit
;
58
}
59
}
Bitrix\Main\ArgumentException
Определения
ArgumentException.php:9
Bitrix\Main\ArgumentException\$parameter
$parameter
Определения
ArgumentException.php:10
Bitrix\Main\ArgumentOutOfRangeException
Определения
ArgumentOutOfRangeException.php:9
Bitrix\Main\ArgumentOutOfRangeException\$lowerLimit
$lowerLimit
Определения
ArgumentOutOfRangeException.php:10
Bitrix\Main\ArgumentOutOfRangeException\getUpperType
getUpperType()
Определения
ArgumentOutOfRangeException.php:55
Bitrix\Main\ArgumentOutOfRangeException\__construct
__construct($parameter, $lowerLimit=null, $upperLimit=null, \Throwable $previous=null)
Определения
ArgumentOutOfRangeException.php:21
Bitrix\Main\ArgumentOutOfRangeException\$upperLimit
$upperLimit
Определения
ArgumentOutOfRangeException.php:11
Bitrix\Main\ArgumentOutOfRangeException\getLowerLimitType
getLowerLimitType()
Определения
ArgumentOutOfRangeException.php:50
$message
$message
Определения
payment.php:8
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
bitrix
modules
main
lib
ArgumentOutOfRangeException.php
Создано системой
1.14.0