Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/lib/orm/fields/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/lib/orm/fields/fielderror.php |
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2012 Bitrix */ namespace Bitrix\Main\ORM\Fields; use Bitrix\Main\ORM\EntityError; class FieldError extends EntityError { const EMPTY_REQUIRED = 'BX_EMPTY_REQUIRED'; const INVALID_VALUE = 'BX_INVALID_VALUE'; /** @var Field */ protected $field; public function __construct(Field $field, $message, $code='BX_ERROR') { parent::__construct($message, $code); $this->field = $field; } public function getField() { return $this->field; } }