Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
requiredfieldnotfoundexception.php
1<?php
2
4
5
7{
9 protected $fieldCode;
10
21 public function __construct(
22 $message = "",
23 $code = 0,
24 $file = "",
25 $line = 0,
26 \Exception $previous = null,
27 $fieldCode = ''
28 )
29 {
30 parent::__construct($message, $code, $file, $line, $previous);
31 $this->fieldCode = $fieldCode;
32 }
33
37 public function getCustomData(): array
38 {
39 return parent::getCustomData() + [
40 'code' => $this->fieldCode,
41 ];
42 }
43}
__construct( $message="", $code=0, $file="", $line=0, \Exception $previous=null, $fieldCode='')