Re: PATCH: add some new exceptions

"James Henstridge" <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On 16/01/2008, Federico Di Gregorio <fog-NGVKUo/i/[email protected]> wrote:
>
> Il giorno mer, 16/01/2008 alle 18.39 +0900, James Henstridge ha scritto:
> [...]
> > I extended the test suite to verify that the new exceptions are being
> > raised correctly.  While working on this, I also made some changes to
> > the way the Connection.*Error attributes are handled, which should be
> > a bit simpler and fixes a reference leak.
> >
> > Does this look sensible to commit?
>
> Absolutely yes. :)
>
> Can I ask from where the name TransactionRollbackError comes?

It is the name of the 40xxx error code class from:

http://www.postgresql.org/docs/current/static/errcodes-appendix.html

(which I guess comes from the SQL standard).  It seemed as good a name
as any other for the exception.

James.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.