Set behaviour of searchProvider as expected

refs #223 refs #377
This commit is contained in:
2015-01-03 23:17:53 +01:00
parent 94b213ccf3
commit eea91de0e0
4 changed files with 61 additions and 24 deletions

View File

@@ -25,11 +25,19 @@ namespace Chill\MainBundle\Search;
*
* @author Julien Fastré <julien.fastre@champs-libres.coop>
*/
class UnknowSearchNameException extends \Exception
class UnknowSearchDomainException extends \Exception
{
public function __construct($name)
private $domain;
public function __construct($domain)
{
parent::__construct( "The module search with name $name "
. "is not found");
parent::__construct( "The domain $domain is not found");
$this->domain = $domain;
}
public function getDomain()
{
return $this->domain;
}
}