Skip site navigation (1) Skip section navigation (2)

python - be: Move exceptions to the Postgres.exceptions "module".

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - be: Move exceptions to the Postgres.exceptions "module".
Date: 2005-07-01 08:20:10
Message-ID: 20050701082010.09C00112617B@pgfoundry.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Move exceptions to the Postgres.exceptions "module". Do so to avoid the clutter
of the many, many exceptions that maiden provides. This will, hopefully, be
reflected in the interface protocol at some point, as it provides a way to
easily identify the exceptions associated with a given interface module.

Move the error initialization portion to a new PyPgError_Initialize() function
in error.c for clarity. Also, improve Postgres.ERROR by allowing the 'code'
keyword. This was left off before as WARNING, NOTICE, etc dont take errcodes(?).
However, now, if the level < ERROR, just give it 0 regardless of the code it was
given..(hrm, maybe change this later..)
(Also, fix speeling in encoding.c)

Modified Files:
--------------
    be/include/pypg:
        error.h (r1.5 -> r1.6)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/include/pypg/error.h.diff?r1=1.5&r2=1.6)
    be/src:
        encoding.c (r1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/encoding.c.diff?r1=1.1&r2=1.2)
        error.c (r1.8 -> r1.9)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/error.c.diff?r1=1.8&r2=1.9)
        module.c (r1.18 -> r1.19)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/module.c.diff?r1=1.18&r2=1.19)
        prime.py (r1.6 -> r1.7)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/prime.py.diff?r1=1.6&r2=1.7)

pgsql-committers by date

Next:From: User DpavlinDate: 2005-07-01 11:06:39
Subject: pgestraier - pgestraier: Imported Sources
Previous:From: User DpavlinDate: 2005-07-01 08:11:07
Subject: pgestraier - pgestraier: Imported Sources

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group