[rabbitmq-discuss] How get detail error message for IOException to a string variable

cw storm cwstorm at gmail.com
Thu Feb 13 00:35:56 GMT 2014

I was performing a negative testing where I was passing an invalid queue
name to the basicConsume and in my catch block I have as follows:

catch (IOException e) {

For error, all I got was "java.io.IOException"  I was hoping I would get a
more detail message like "invalid queue name" or something.  I even try
"getMessage()" but that return null.

Am I missing something?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140212/49f6c39f/attachment.html>

More information about the rabbitmq-discuss mailing list