Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -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 :
Expand Down
9 changes: 7 additions & 2 deletions main/Utils/AMQP/Pecl/AMQPPeclChannel.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function exchangeDelete(
$this->unsetExchange($name);

return $this;
}
}

/**
* @throws AMQPServerException|AMQPServerConnectionException
Expand Down Expand Up @@ -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);
Expand Down