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: > http://activemq.apache.org/cms/api.html. 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: http://activemq.apache.org/cms/building.html > > 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 >> (http://activemq.apache.org/cms/api_docs/activemqcpp-2.1/classactivemq_1_1exceptions_1_1_active_m_q_exception.html). >> >> 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: http://www.nabble.com/CMSExceptions-tp18837213p19134312.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.