[Zope-CMF] how to override raise ???

Chris Withers chrisw@nipltd.com
Sun, 01 Jul 2001 15:00:31 +0100


Robert Rottermann wrote:
> 
> Is there a way to override the behaviour of raise so I get a chance to
> translate any message it might throw at me?

What you need is a really high-up try-except that's hookable :-S

try:

...all of zope...

except:
   ...translate here...
   raise <the right thing>

cheers,

Chris