mirror of
https://github.com/predis/predis.git
synced 2026-08-23 09:14:00 +00:00
12 lines
284 B
PHP
12 lines
284 B
PHP
<?php
|
|
|
|
namespace Predis\Protocols;
|
|
|
|
use Predis\Network\IConnectionSingle;
|
|
|
|
class ResponseErrorHandler implements IResponseHandler {
|
|
public function handle(IConnectionSingle $connection, $errorMessage) {
|
|
throw new \Predis\ServerException(substr($errorMessage, 4));
|
|
}
|
|
}
|