1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
ArgumentException.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Rest\Exceptions
;
6
7
use
Bitrix\Rest\RestException
;
8
9
class
ArgumentException
extends
RestException
10
{
11
protected
string
$parameter
;
12
13
public
function
__construct
(
string
$message
=
''
,
string
$parameter
=
''
, \
Exception
$previous =
null
)
14
{
15
parent::__construct(
$message
, self::ERROR_ARGUMENT,
16
\CRestServer::STATUS_WRONG_REQUEST,
17
$previous
18
);
19
20
$this->parameter =
$parameter
;
21
22
$this->
setAdditional
([
23
'argument'
=> $this->
getParameter
(),
24
]);
25
}
26
27
public
function
getParameter
(): string
28
{
29
return
$this->parameter
;
30
}
31
}
Bitrix\Rest\Exceptions\ArgumentException
Определения
ArgumentException.php:10
Bitrix\Rest\Exceptions\ArgumentException\__construct
__construct(string $message='', string $parameter='', \Exception $previous=null)
Определения
ArgumentException.php:13
Bitrix\Rest\Exceptions\ArgumentException\$parameter
string $parameter
Определения
ArgumentException.php:11
Bitrix\Rest\Exceptions\ArgumentException\getParameter
getParameter()
Определения
ArgumentException.php:27
Bitrix\Rest\RestException
Определения
restexception.php:6
Bitrix\Rest\RestException\setAdditional
setAdditional($error_additional)
Определения
restexception.php:63
Bitrix\Main\DI\Exception
Определения
circulardependencyexception.php:3
Bitrix\Rest\Exceptions
Определения
ArgumentException.php:5
$message
$message
Определения
payment.php:8
bitrix
modules
rest
lib
Exceptions
ArgumentException.php
Создано системой
1.14.0