activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: ActiveMq-Cpp initializeLibrary and CMSException what()
Date Tue, 20 Oct 2009 15:49:36 GMT
On Tue, 2009-10-20 at 08:40 -0700, bpmuser wrote:
> I was trying to debug an error related to not calling
> activemq::library::ActiveMQCPP::initializeLibrary() (I can still find no
> documentation on this. I'll try and update at least the example code. I
> think it should be on the wiki. I'm new.) 
> 
> I was catching the exception as a std::exception and trying to use the
> what() function to figure out the error.  All that was output was "unknown
> exception".  I think it be okay to add:
> 

You can create a new Jira issue and attach the patch to properly
override the what method from std::exception.

Regards
Tim.

> CMSException.h:
> 
>         /**
>          * Gets the cause of the error.
>          *
>          * @return const char pointer to error message
>          */
>         virtual const char * what() const;
> 
> CMSException.cpp:
> 
> ////////////////////////////////////////////////////////////////////////////////
> const char * CMSException::what() const {
> 	return this->data->message.c_str();
> }
> 
> It should reasonable and it works on my system.  Any thoughts?
> 
> I'm not a dev, but I can try and sign up if needed.
> 
> Cheers,
> Brian!
> 
-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/




Mime
View raw message