New Api
This commit is contained in:
parent
4c961a757d
commit
15d3f1e4f8
23 changed files with 912 additions and 13 deletions
13
Exception/UnexpectedObjectException.php
Normal file
13
Exception/UnexpectedObjectException.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace FOS\ElasticaBundle\Exception;
|
||||
|
||||
use Exception;
|
||||
|
||||
class UnexpectedObjectException extends \Exception
|
||||
{
|
||||
public function __construct($id)
|
||||
{
|
||||
parent::__construct(sprintf('Lookup returned an unknown object with id %d', $id));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue