Files
intranet/app/Exception/PropertyNotFound.php
2020-12-01 17:23:13 -03:00

16 lines
381 B
PHP

<?php
namespace App\Exception;
class PropertyNotFound extends \LogicException
{
protected $class;
protected $property;
public function __construct($class, $property)
{
$this->class = $class;
$this->property = $property;
$msg = "Property '" . $property . "' for class '" . $class . "' not found.";
parent::__construct($msg);
}
}