[Top][All Lists]

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

Re: Why doesn't dbus-handle-event catch all errors?

From: Michael Albinus
Subject: Re: Why doesn't dbus-handle-event catch all errors?
Date: Fri, 21 Feb 2014 08:22:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Daniel Colascione <address@hidden> writes:

> dbus-handle-event uses a condition-case that catches dbus-error, but
> errors in general. Why don't we send all lisp errors from handler
> functions back to callers as dbus errors?

Because they aren't dbus errors. If your handler has some stupid code
like `(car 42)', the resulting lisp error `(wrong-type-argument listp 42)'
shouldn't be shown as *dbus* error.

You're free to write a handler which returns any error as dbus error, if
your program logic requires this.

Best regards, Michael.

reply via email to

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