From 1bd4a25e366dc06d7275b4e244426c3ca6c4ac47 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Thu, 2 Jun 2011 18:43:52 +0200 Subject: [PATCH] Remove code comments in the exception classes. Descriptions will be added again later with proper documentation. --- lib/Predis/ClientException.php | 1 - lib/Predis/CommunicationException.php | 10 +++++++--- lib/Predis/ConnectionException.php | 1 - lib/Predis/PredisException.php | 1 - lib/Predis/ProtocolException.php | 7 ------- 5 files changed, 7 insertions(+), 13 deletions(-) diff --git a/lib/Predis/ClientException.php b/lib/Predis/ClientException.php index 83a2d52a..06dcfde1 100644 --- a/lib/Predis/ClientException.php +++ b/lib/Predis/ClientException.php @@ -3,5 +3,4 @@ namespace Predis; class ClientException extends PredisException { - // Client-side errors } diff --git a/lib/Predis/CommunicationException.php b/lib/Predis/CommunicationException.php index 0cc6e1b2..9e1a183b 100644 --- a/lib/Predis/CommunicationException.php +++ b/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; + } } diff --git a/lib/Predis/ConnectionException.php b/lib/Predis/ConnectionException.php index d4ed16ec..7f30c2c5 100644 --- a/lib/Predis/ConnectionException.php +++ b/lib/Predis/ConnectionException.php @@ -3,5 +3,4 @@ namespace Predis; class ConnectionException extends CommunicationException { - // Network errors } diff --git a/lib/Predis/PredisException.php b/lib/Predis/PredisException.php index 207ed088..ac1f968f 100644 --- a/lib/Predis/PredisException.php +++ b/lib/Predis/PredisException.php @@ -3,5 +3,4 @@ namespace Predis; abstract class PredisException extends \Exception { - // Base Predis exception class } diff --git a/lib/Predis/ProtocolException.php b/lib/Predis/ProtocolException.php index fec06ec7..e5e6c097 100644 --- a/lib/Predis/ProtocolException.php +++ b/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); - } }