/** * @inheritdoc */ public function waitForBasicReturn(float $timeout = 0.0) { try { $this->channel->waitForBasicReturn($timeout); } catch (\AMQPChannelException $e) { throw ChannelException::fromAmqpExtension($e); } catch (\AMQPQueueException $e) { throw ChannelException::fromAmqpExtension($e); } }
/** * @inheritdoc */ public function declareQueue() : int { try { return $this->queue->declareQueue(); } catch (\AMQPQueueException $e) { throw QueueException::fromAmqpExtension($e); } catch (\AMQPChannelException $e) { throw ChannelException::fromAmqpExtension($e); } }