[C++-sig] Exception translation

Albert Strasheim fullung at gmail.com
Sat Jun 16 17:04:12 CEST 2007


Hello all

----- Original Message ----- 
From: "Piotr Jaroszyński" <p.jaroszynski at gmail.com>
To: <c++-sig at python.org>
Sent: Saturday, June 16, 2007 3:33 PM
Subject: Re: [C++-sig] Exception translation


> On Friday 15 of June 2007 23:38:14 Albert Strasheim wrote:
>> Hello all
>>
>> I want to translate some of my exceptions from C++ to Python.
>
> FWIW, I have written some exception handling code too:
> http://paludis.pioto.org/trac/browser/trunk/python/exception.hh
> http://paludis.pioto.org/trac/browser/trunk/python/exception.cc
>
> It's a little project specific, but could be easily adjusted.

Thanks very much for this. I was able to simplify you excellent code to suit 
my needs exactly. Luckily for me, the library I'm wrapping doesn't require 
anything too fancy, so I'm able to get away without Roman's rvalue 
converters.

http://pyactivemq.googlecode.com/svn/trunk/src/main/CMSException.cpp

Cheers,

Albert 




More information about the Cplusplus-sig mailing list