mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Remove code comments in the exception classes. Descriptions will be added again later with proper documentation.
This commit is contained in:
@@ -3,5 +3,4 @@
|
||||
namespace Predis;
|
||||
|
||||
class ClientException extends PredisException {
|
||||
// Client-side errors
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ namespace Predis;
|
||||
use Predis\Network\IConnectionSingle;
|
||||
|
||||
abstract class CommunicationException extends PredisException {
|
||||
// Communication errors
|
||||
private $_connection;
|
||||
|
||||
public function __construct(IConnectionSingle $connection, $message = null,
|
||||
@@ -15,6 +14,11 @@ abstract class CommunicationException extends PredisException {
|
||||
parent::__construct($message, $code, $innerException);
|
||||
}
|
||||
|
||||
public function getConnection() { return $this->_connection; }
|
||||
public function shouldResetConnection() { return true; }
|
||||
public function getConnection() {
|
||||
return $this->_connection;
|
||||
}
|
||||
|
||||
public function shouldResetConnection() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,5 +3,4 @@
|
||||
namespace Predis;
|
||||
|
||||
class ConnectionException extends CommunicationException {
|
||||
// Network errors
|
||||
}
|
||||
|
||||
@@ -3,5 +3,4 @@
|
||||
namespace Predis;
|
||||
|
||||
abstract class PredisException extends \Exception {
|
||||
// Base Predis exception class
|
||||
}
|
||||
|
||||
@@ -2,12 +2,5 @@
|
||||
|
||||
namespace Predis;
|
||||
|
||||
use Predis\Network\IConnectionSingle;
|
||||
|
||||
class ProtocolException extends CommunicationException {
|
||||
// Unexpected responses
|
||||
|
||||
public function __construct(IConnectionSingle $connection, $message = null) {
|
||||
parent::__construct($connection, $message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user