Exceptable is a Python + PL/PGSQL library specifically built to handle propagation of exceptions from PostgreSQL and stored procedures in a more consistent fashion.
By utilizing a standardized exception text format, standard ProgrammingErrors as raised by the Python DB-API can be caught, analyzed, and re-raised as exceptions that are more useful in the application layer.

Definable Exceptions

By providing a simple, configurable decorator for wrapping DB functionality, Exceptable allows for customizable exception APIs to be created simply and efficiently.

Get the Code

You can get Exceptable in one of several ways. First, the easy installation via Python's PyPI index, via:

$ easy_install Exceptable

which will install the library in your standard path.

Secondly, you can get the source code from our SVN repository, via:

$ svn co https://projects.commandprompt.com/public/exceptable/repo/ ./exceptable

And last but not least, Exceptable's can now be forked and cloned on GitHub, via

$ git clone git://github.com/commandprompt/Exceptable.git ./exceptable

All pull requests are examined and taken seriously.

Finally, if you're contributing to the Exceptable project, why not sign up for our mailing list, available at

Exceptable.pdf - Talk given at Pg West 2009 on how to use Exceptable (4.85 MB) bford -, 10/22/2009 10:42 AM