[rabbitmq-discuss] How get detail error message for IOException	to a string variable
    Michael Klishin 
    mklishin at gopivotal.com
       
    Thu Feb 13 04:36:53 GMT 2014
    
    
  
On 13 Feb 2014, at 04:35, cw storm <cwstorm at gmail.com> wrote:
> 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?
The IOException wraps the underlying cause:
e.getCause()
which often will end up being a com.rabbitmq.client.ShutdownSignalException
which has a number of methods of its own:
http://www.rabbitmq.com/javadoc/com/rabbitmq/client/ShutdownSignalException.html
MK
Software Engineer, Pivotal/RabbitMQ
    
    
More information about the rabbitmq-discuss
mailing list