Re: [racket] DB library - postgres and user defined errors...

2011-11-18 Thread Ryan Culpepper
On 11/18/2011 12:41 PM, Curtis Dutton wrote: What is a good way to get user defined exceptions, written inside of postrges function to be reflected to the end user? Say I have an item table in a database and it has a unique 'name' column. When I call my 'create_item' function in the postgres da

[racket] DB library - postgres and user defined errors...

2011-11-18 Thread Curtis Dutton
What is a good way to get user defined exceptions, written inside of postrges function to be reflected to the end user? Say I have an item table in a database and it has a unique 'name' column. When I call my 'create_item' function in the postgres database, and the name given conflicts with an e