Files
predis/lib/Predis/Protocols/Text/ResponseErrorHandler.php
T
2011-05-14 10:34:22 +02:00

14 lines
345 B
PHP

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