anuraguniyal at yahoo.com wrote: >> It would be better to write your own exception class: >> >> class MyException(Exception): >> pass > > > and how would i automatically inject this into 3rd part library Ah, I wasn't reading carefully enough! :-)