Bitrix-D7  20.0.0
fielderror.php
См. документацию.
1 <?php
2 /**
3  * Bitrix Framework
4  * @package bitrix
5  * @subpackage main
6  * @copyright 2001-2012 Bitrix
7  */
8 
9 namespace Bitrix\Main\ORM\Fields;
10 
12 
13 class FieldError extends EntityError
14 {
15  const EMPTY_REQUIRED = 'BX_EMPTY_REQUIRED';
16  const INVALID_VALUE = 'BX_INVALID_VALUE';
17 
18  /** @var Field */
19  protected $field;
20 
21  public function __construct(Field $field, $message, $code='BX_ERROR')
22  {
24  $this->field = $field;
25  }
26 
27  public function getField()
28  {
29  return $this->field;
30  }
31 }
Bitrix\Main\ORM\Fields\FieldError\INVALID_VALUE
const INVALID_VALUE
Definition: fielderror.php:16
Bitrix\Main\ORM\Fields
Definition: arrayfield.php:9
Bitrix\Main\ORM\Fields\FieldError\$field
$field
Definition: fielderror.php:19
Bitrix\Main\ORM\Fields\FieldError
Definition: fielderror.php:13
Bitrix\Main\ORM\EntityError
Definition: entityerror.php:11
Bitrix\Main\ORM\Fields\FieldError\EMPTY_REQUIRED
const EMPTY_REQUIRED
Definition: fielderror.php:15
Bitrix\Sender\Connector\__construct
__construct(Base $connector)
Constructor.
Definition: resultview.php:40
Bitrix\Main\ORM\Fields\Field
Definition: main/lib/orm/fields/field.php:24
Bitrix\Main\Error\$code
$code
Definition: main/lib/error.php:14
Bitrix\Main\ORM\Fields\FieldError\__construct
__construct(Field $field, $message, $code='BX_ERROR')
Definition: fielderror.php:21
Bitrix\Main\Error\$message
$message
Definition: main/lib/error.php:17
Bitrix\Main\ORM\Fields\FieldError\getField
getField()
Definition: fielderror.php:27