/**
* @inheritdoc
*/
public function basicQos($prefetchSize, $prefetchCount)
{
try {
return $this->delegate->qos($prefetchSize, $prefetchCount);
} catch (\AMQPChannelException $e) {
throw new ChannelException($e->getMessage(), $e->getCode(), $e);
} catch (\AMQPConnectionException $e) {
throw new ConnectionException($e->getMessage(), $e->getCode(), $e);
}
}