Files
predis/lib/Predis/Protocol/Text/ResponseErrorHandler.php
T
2011-06-04 15:45:01 +02:00

14 lines
343 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);
}
}