Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ArgumentException.php
1<?php
2
3declare(strict_types=1);
4
6
8
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}
__construct(string $message='', string $parameter='', \Exception $previous=null)
setAdditional($error_additional)