mirror of
https://github.com/predis/predis.git
synced 2026-10-14 07:47:49 +00:00
Reorganize the Predis\Protocols namespace.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?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(substr($errorMessage, 4));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user