[prev in list] [next in list] [prev in thread] [next in thread] 

List:       racket-users
Subject:    [racket] Catch db errors
From:       ryanc () ccs ! neu ! edu (Ryan Culpepper)
Date:       2013-08-31 17:27:50
Message-ID: 52222796.3080405 () ccs ! neu ! edu
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic