New Api
This commit is contained in:
parent
4c961a757d
commit
15d3f1e4f8
23 changed files with 912 additions and 13 deletions
15
Exception/MissingModelException.php
Normal file
15
Exception/MissingModelException.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue