Newer
Older
framework / system / Exceptions / EntityException.php
@Jim Parry Jim Parry on 6 May 2019 373 bytes Release 4.0.0-beta.3
<?php namespace CodeIgniter\Exceptions;

/**
 * Entity Exceptions.
 */

class EntityException extends AlertError
{

	/**
	 * Error code
	 *
	 * @var integer
	 */
	protected $code = 3;

	public static function forTryingToAccessNonExistentProperty(string $property, string $on)
	{
		throw new static(lang('Entity.tryingToAccessNonExistentProperty', [$property, $on]));
	}

}