activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: CMSExceptions
Date Sun, 24 Aug 2008 20:12:13 GMT

CMSException in Trunk now has a getCause that will return you the underlying
exception which you can cast to the types you want to handle.

Timothy Bish wrote:
> The architecture of the C++ client has changed such that the
> CMSException won't be castable to an exception type from the decaf
> package since we don't want to tie the CMS code to libraries that
> someone else implementing a CMS client might not want to use.  That
> being said it would probably make sense at this point to add something
> like a getCause method like the Java Exception class to the CMSException
> and the Decaf Exception classes so that we can pass the cause exception
> along as a C++ exception instance since both inherit from that class.  
> I've finally had a chance to generate the 2.2 API docs and upload them
> to the CMS website, they should be visible now from the API page, here:
>  For future reference the
> autotools generated make target for creating the doxygen docs isn't
> 'make doxygen', its 'make doxygen-run' this is documented on the
> Building page, here:
> Regards
> Tim
> On Tue, 2008-08-05 at 11:30 -0700, fredrick255 wrote:
>> I am trying to handle specific exceptions in activemq-cpp 2.2. For
>> example, I
>> would like to catch the SocketException that occurs when the client fails
>> to
>> connect to the broker upon connectionFactory->createConnection(...). The
>> structure that would allow me to cast the CMSException to a more specific
>> exception seems to no longer exist 
>> (
>> Does anyone know if the 2.2 API documentation is posted anywhere because
>> it
>> is not posted with the other api documentation. When I try: make
>> doxygen-run
>> I get make: *** No rule to make target `doxygen-run'.  Stop.
>> Any ideas?
>> Thanks,
>> Fredrick

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message