Browse Source

Remove code comments in the exception classes. Descriptions will be added again later with proper documentation.

Daniele Alessandri 13 years ago
parent
commit
1bd4a25e36

+ 0 - 1
lib/Predis/ClientException.php

@@ -3,5 +3,4 @@
 namespace Predis;
 
 class ClientException extends PredisException {
-    // Client-side errors
 }

+ 7 - 3
lib/Predis/CommunicationException.php

@@ -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;
+    }
 }

+ 0 - 1
lib/Predis/ConnectionException.php

@@ -3,5 +3,4 @@
 namespace Predis;
 
 class ConnectionException extends CommunicationException {
-    // Network errors
 }

+ 0 - 1
lib/Predis/PredisException.php

@@ -3,5 +3,4 @@
 namespace Predis;
 
 abstract class PredisException extends \Exception {
-    // Base Predis exception class
 }

+ 0 - 7
lib/Predis/ProtocolException.php

@@ -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);
-    }
 }