[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dev-serveez] exception handler for gh_call*() functions

From: stefan
Subject: Re: [dev-serveez] exception handler for gh_call*() functions
Date: Fri, 21 Sep 2001 15:07:15 +0200 (CEST)

On Fri, 21 Sep 2001, Martin Grabmueller wrote:

> > From: stefan <address@hidden>
> > Date: Thu, 20 Sep 2001 18:02:45 +0200 (CEST)
> > 
> > on different points of executing a guile server we use gh_call*()
> > functions in order to run appropiate callbacks defined in guile. If
> > these do not use (catch ...) it might occur that Serveez stops
> > execution with a Guile exception. Should we and can we prevent this
> > behaviour ?
> I'm not sure that we should unconditionally supress errors on the
> Guile level, at least an error message should be printed.  If we
> decide to catch the errors, we'll have to use gh_catch().

The CVS contains now some experimental code depending on the static
variable guile_use_exceptions (maybe should be accessible from guile, too)
using gh_catch() to catch exceptions on guile level within calls to guile
procedures. It prints an appropiate error message including the name of
the procedure and the error itself.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]