Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Initial Version and Version 1 of SqlObjectGotchas


Ignore:
Timestamp:
02/14/06 09:44:06 (13 years ago)
Author:
ghaering
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SqlObjectGotchas

    v1 v1  
     1SqlObject does not catch and re-throw the exceptions of the underlying DB-API module. Instead you will get the exceptions of the DB-API module directly in your face, like an !IntegrityError if you hit a constraint violation. 
     2 
     3I haven't seen a sensible way to intercept those exceptions, yet, something like 
     4 
     5{{{ 
     6#!python 
     7try: 
     8   ... 
     9except hub.hub.getConnection().module.IntegrityError, e: 
     10   ... 
     11}}} 
     12 
     13just seems to be too kludgy ...