1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ArgumentOutOfRangeException.php
См. документацию.
1<?php
2
3namespace Bitrix\Main;
4
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}
__construct($parameter, $lowerLimit=null, $upperLimit=null, \Throwable $previous=null)
Определения ArgumentOutOfRangeException.php:21
$message
Определения payment.php:8
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393