blob: 393561052a2e84517f91d1785d6a55223633ec27 [file] [log] [blame]
<?php
namespace Adldap\Models;
use Adldap\AdldapException;
/**
* Class ModelDoesNotExistException.
*
* Thrown when a model being saved / updated does not actually exist.
*/
class ModelDoesNotExistException extends AdldapException
{
/**
* The class name of the model that does not exist.
*
* @var string
*/
protected $model;
/**
* Sets the model that does not exist.
*
* @param string $model
*
* @return ModelDoesNotExistException
*/
public function setModel($model)
{
$this->model = $model;
$this->message = "Model [{$model}] does not exist.";
return $this;
}
}