Skip to content

Commit 8ea2677

Browse files
committed
Convert ClientException in get operation
1 parent 24dd92c commit 8ea2677

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/rabbitmq/client/amqp/impl/AmqpManagement.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ public QueueInfo queueInfo(String name) {
122122
Map<String, Object> queueInfo = get(queueLocation(name)).responseBodyAsMap();
123123
return new DefaultQueueInfo(queueInfo);
124124
} catch (ClientException e) {
125-
throw new AmqpException("Error while fetching queue '%s' information", name);
125+
String message = String.format("Error while fetching information for queue '%s'", name);
126+
LOGGER.debug(message, e);
127+
throw ExceptionUtils.convert(e, message);
126128
}
127129
}
128130

0 commit comments

Comments
 (0)