Re: Altering the way exceptions print themselves

2006-10-22 Thread Peter Otten
Irmen de Jong wrote: > I want to alter the way exceptions print themselves. > More specifically, I'd like to extend the __str__ method of > the exception's class so that it is printed in a different way. > > I used to replace the __str__ method on the exception object's > class by a custom method

Altering the way exceptions print themselves

2006-10-22 Thread Irmen de Jong
Hello, I want to alter the way exceptions print themselves. More specifically, I'd like to extend the __str__ method of the exception's class so that it is printed in a different way. I used to replace the __str__ method on the exception object's class by a custom method, but that breaks my code