2014-04-25 13:31:04 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FOS\ElasticaBundle\Exception;
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
|
|
|
class UnexpectedObjectException extends \Exception
|
|
|
|
{
|
|
|
|
public function __construct($id)
|
|
|
|
{
|
2014-05-15 14:55:35 +02:00
|
|
|
parent::__construct(sprintf('Lookup returned an unexpected object with id %d', $id));
|
2014-04-25 13:31:04 +02:00
|
|
|
}
|
|
|
|
}
|