[racket] Catch db errors

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Sat Aug 31 13:27:50 EDT 2013

On 08/31/2013 12:19 PM, Laurent wrote:
> Is there a way to catch the errors (more like warnings actually) thrown
> by the db?
> `with-handlers' does not do the trick since racket does not fail on
> them, and a little search on the mailing list did not return relevant info.
>
> The purpose is to use check-exn and check-not-exn on a generated db.

I'm not sure exactly what you mean, but maybe you want to supply a 
#:notice-handler function when you create a connection.

If that's not what you meant, can you provide a more concrete example of 
what your code does and what warning you want to detect?

Ryan


Posted on the users mailing list.