Your IP : 3.128.78.107


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/lib/orm/fields/
Upload File :
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;
	}
}