Re-raising exceptions with modified message

Thomas Heller theller at
Thu Jul 5 16:14:17 CEST 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...


More information about the Python-list mailing list