[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML

webmaster@zope.org webmaster@zope.org
Sat, 23 Nov 2002 11:43:43 -0500


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx#3-181

---------------

      DTML's *except* tags work with Python's class-based
      exceptions. In addition to matching exceptions by name, the
      except tag will match any subclass of the named exception. For
      example, if *ArithmeticError* is named in a *except* tag, the
      tag can handle all *ArithmeticError* subclasses including,
      *ZeroDivisionError*. See a Python reference such as the online
      "Python Library
      Reference":http://www.python.org/doc/current/lib/module-exceptions.html
      for a list of Python exceptions and their subclasses.  An
      *except* tag can catch multiple exceptions by listing them all
      in the same tag.

        % Anonymous User - Nov. 23, 2002 11:43 am:
         You gave a link to the python exceptions, but what's about the Zope's Built-in Exceptions? (ie: The one that
         comes with the authorized errors)