[Zope-Perl] Exception names

Gisle Aas gisle@ActiveState.com
11 Jun 2000 14:22:36 -0000


I have currently named exceptions raised by perl "perl.error".

>>> import perl
>>> perl.eval("3/0")
Traceback (innermost last):
  File "<stdin>", line 1, in ?
perl.error: Illegal division by zero at (eval 1) line 2.

My problem is that when Zope displays this kind of exception it only
shows "error" (i.e. drops the "perl." prefix) which is not very
informative.  Is this a bug in Zope or should I name my exception
"perl.PerlError" or something like that?

--Gisle