Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
Definition
ArgumentException.php:10
Bitrix\Rest\Exceptions\ArgumentException\__construct
__construct(string $message='', string $parameter='', \Exception $previous=null)
Definition
ArgumentException.php:13
Bitrix\Rest\Exceptions\ArgumentException\$parameter
string $parameter
Definition
ArgumentException.php:11
Bitrix\Rest\Exceptions\ArgumentException\getParameter
getParameter()
Definition
ArgumentException.php:27
Bitrix\Rest\RestException
Definition
restexception.php:6
Bitrix\Rest\RestException\setAdditional
setAdditional($error_additional)
Definition
restexception.php:63
Bitrix\Rest\Exceptions
Definition
ArgumentException.php:5
modules
rest
lib
Exceptions
ArgumentException.php
Создано системой
1.10.0