Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
invalidfieldvalue.php
1<?php
2
4
6{
8
9 protected $fieldCode;
10 protected $value;
11
23 public function __construct(
24 $message = "",
25 $code = 0,
26 $file = "",
27 $line = 0,
28 \Exception $previous = null,
29 $fieldCode = '',
30 $value = ''
31 )
32 {
33 parent::__construct($message, $code, $file, $line, $previous);
34 $this->fieldCode = $fieldCode;
35 $this->value = $value;
36 }
37
41 public function getCustomData(): array
42 {
43 return parent::getCustomData() + [
44 'code' => $this->fieldCode,
45 'value' => $this->value
46 ];
47 }
48}
__construct( $message="", $code=0, $file="", $line=0, \Exception $previous=null, $fieldCode='', $value='')