Exceptions not available on the connection
MySQL database connector for Python programming
Brought to you by:
adustman
According to http://www.python.org/dev/peps/pep-0249/ ,
this is an optional DB API extension:
Connection Attributes .Error, .ProgrammingError, etc. All exception classes defined by the DB API
standard should be
exposed on the Connection objects as attributes
(in addition
to being available at module scope).
These attributes simplify error handling in
multi-connection
environments.
This would be convenient for writing more portable code.
It would be nice if I could get exceptions from the
connection and not have to import them from whatever
db-api module I happen to be using.
Logged In: YES
user_id=71372
Been there, done that.
Python 2.4.2 (#1, Oct 14 2005, 01:36:01)
[GCC 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)] on
linux2
Type "help", "copyright", "credits" or "license" for more
information.
Logged In: YES
user_id=38329
oops. sorry for the noise. Thanks!