Skip to content

Commit f68cfb5

Browse files
committed
Merge pull request #51 from sugrob/customizeAMQPException
Customize amqp exception
2 parents b0741a6 + c7e2f39 commit f68cfb5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2011-11-14 Dmitry V. Snezhinskiy
2+
3+
* main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php :
4+
customize AMQPPeclChannel Exception. Author Evgenia T. Tekalin
5+
16
2011-11-14 Evgeny V. Kokovikhin
27

38
* core/Cache/PeclMemcached.class.php, test/core/MemcachedTest.class.php :

main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function exchangeDelete(
317317
$this->unsetExchange($name);
318318

319319
return $this;
320-
}
320+
}
321321

322322
/**
323323
* @throws AMQPServerException|AMQPServerConnectionException
@@ -499,7 +499,12 @@ public function getNextDelivery()
499499
$this->consumer->getConsumerTag()
500500
!= $incoming->getConsumerTag()
501501
) {
502-
throw new WrongStateException('Consumer change tag');
502+
throw new WrongStateException(
503+
"Consumer change tag consumerTag="
504+
."{$this->consumer->getConsumerTag()}, "
505+
."message.consumerTag={$incoming->getConsumerTag()}, "
506+
."message.body={$incoming->getBody()}"
507+
);
503508
}
504509

505510
$this->consumer->handleDelivery($incoming);

0 commit comments

Comments
 (0)