From b94dbb34c198b3dbfdd93fa1766aa5bbc5d71698 Mon Sep 17 00:00:00 2001 From: Sugrob Date: Wed, 16 Nov 2011 17:20:28 +0300 Subject: [PATCH 1/2] customize AMQP Exception --- main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php b/main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php index 5b33866213..9121130d76 100644 --- a/main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php +++ b/main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php @@ -317,7 +317,7 @@ public function exchangeDelete( $this->unsetExchange($name); return $this; - } + } /** * @throws AMQPServerException|AMQPServerConnectionException @@ -499,7 +499,12 @@ public function getNextDelivery() $this->consumer->getConsumerTag() != $incoming->getConsumerTag() ) { - throw new WrongStateException('Consumer change tag'); + throw new WrongStateException( + "Consumer change tag consumerTag=" + ."{$this->consumer->getConsumerTag()}, " + ."message.consumerTag={$incoming->getConsumerTag()}, " + ."message.body={$incoming->getBody()}" + ); } $this->consumer->handleDelivery($incoming); From c7e2f39ab501c2f95710c16ab2e9e4834d84876e Mon Sep 17 00:00:00 2001 From: Sugrob Date: Wed, 16 Nov 2011 17:28:55 +0300 Subject: [PATCH 2/2] update ChangeLog --- doc/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/ChangeLog b/doc/ChangeLog index 3ed88c2b2e..f27e7e4c7c 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2011-11-14 Dmitry V. Snezhinskiy + + * main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php : + customize AMQPPeclChannel Exception. Author Evgenia T. Tekalin + 2011-11-14 Evgeny V. Kokovikhin * core/Cache/PeclMemcached.class.php, test/core/MemcachedTest.class.php :