Re-raising exceptions with modified message

Thomas Heller theller at ctypes.org
Thu Jul 5 10:14:17 EDT 2007


Christoph Zwerschke schrieb:
> What is the best way to re-raise any exception with a message 
> supplemented with additional information (e.g. line number in a 
> template)?

I have the impression that you do NOT want to change the exceptions,
instead you want to print the traceback in a customized way.  But I may be wrong...

Thomas




More information about the Python-list mailing list