for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\ElasticaBundle\Exception;
use Elastica\Index;
/**
* @author Kevin Bond <[email protected]>
*/
class RuntimeException extends \RuntimeException implements Exception
{
* @param Index $index
*
* @return RuntimeException
public static function indexExists(Index $index)
return new self(sprintf('Index "%s" already exists.', $index->getName()));
}