Files
predis/lib/Predis/Protocol/Text/ResponseErrorHandler.php
T
2011-10-18 15:51:55 +02:00

16 lines
347 B
PHP

<?php
namespace Predis\Protocol\Text;
use Predis\ServerException;
use Predis\Protocol\IResponseHandler;
use Predis\Network\IConnectionComposable;
class ResponseErrorHandler implements IResponseHandler
{
public function handle(IConnectionComposable $connection, $errorMessage)
{
throw new ServerException($errorMessage);
}
}