FOSElasticaBundle/Exception/MissingModelException.php

16 lines
347 B
PHP
Raw Normal View History

2014-04-25 13:31:04 +02:00
<?php
namespace FOS\ElasticaBundle\Exception;
use Exception;
class MissingModelException extends \Exception
{
public function __construct($modelCount, $resultCount)
{
$message = sprintf('Expected to have %d models, but the lookup returned %d results', $resultCount, $modelCount);
parent::__construct($message);
}
}