mirror of
https://github.com/predis/predis.git
synced 2026-09-05 07:16:44 +00:00
Use a more appropriate exception.
This commit is contained in:
@@ -15,11 +15,11 @@ use ArrayIterator;
|
||||
use Countable;
|
||||
use IteratorAggregate;
|
||||
use OutOfBoundsException;
|
||||
use Predis\ClientException;
|
||||
use Predis\NotSupportedException;
|
||||
use Predis\Cluster;
|
||||
use Predis\Command\CommandInterface;
|
||||
use Predis\Command\RawCommand;
|
||||
use Predis\Protocol;
|
||||
use Predis\Response;
|
||||
|
||||
/**
|
||||
@@ -409,7 +409,9 @@ class RedisCluster implements ClusterConnectionInterface, IteratorAggregate, Cou
|
||||
return $response;
|
||||
|
||||
default:
|
||||
throw new ClientException("Unexpected request type for a move request: $request");
|
||||
throw new Protocol\ProtocolException(
|
||||
"Unexpected request type for a move request: $request"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user