Edgewall Software

Changes between Version 3 and Version 4 of TracDev/Exceptions


Ignore:
Timestamp:
Sep 18, 2013, 10:14:24 PM (11 years ago)
Author:
Peter Suter
Comment:

Some observations about the exception hierarchy.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/Exceptions

    v3 v4  
    2727  * [=#Error `Error`] ([source:trunk/trac/db/tests/api.py#/Error trac.db.tests.api])
    2828
     29This hierarchy seems fairly inconsistent. Consider using the `TracError` base class consistently.
     30
     31There also seem to be multiple naming conventions. Consider following PEP:0008#exception-names.
     32
     33But changing the existing hierarchy might be difficult without breaking backward compatibility.
     34
    2935== DB Exceptions
    3036We can catch [pep:0249#exceptions Python DB API exceptions] in a DB-neutral way. (Since Trac 1.0, see #6348.)