Re: [Vala] Comfortable error handling for non-GLib C functions?



Hi Frederik,

On Mon, 2008-05-19 at 01:42 +0200, Frederik wrote:
is it possible to declare in a vapi binding via attribute that a certain
exception (error) should be raised (that can be handled via try...catch
in Vala code) when the return value of the C function is NULL or, more
generally, meets a certain condition (e.g. negative return value)?

We only support GError-based exceptions currently but it might make
sense to extend this to support other common error reporting schemes for
bindings.

Jürg




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