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

This commit is contained in:
Daniele Alessandri
2011-06-02 18:43:52 +02:00
parent 24aaa2ac23
commit 1bd4a25e36
5 changed files with 7 additions and 13 deletions
-1
View File
@@ -3,5 +3,4 @@
namespace Predis;
class ClientException extends PredisException {
// Client-side errors
}
+7 -3
View File
@@ -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;
}
}
-1
View File
@@ -3,5 +3,4 @@
namespace Predis;
class ConnectionException extends CommunicationException {
// Network errors
}
-1
View File
@@ -3,5 +3,4 @@
namespace Predis;
abstract class PredisException extends \Exception {
// Base Predis exception class
}
-7
View File
@@ -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);
}
}