The Result<T> returned by Object::invoke_method_synchronously() never holds an error state

Bug #1323582 reported by James Henstridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus-cpp
New
Undecided
Unassigned

Bug Description

Given that Object::invoke_method_synchronously() returns a Result<T> type, I would expect any errors from the method to be reported through result.is_error().

However, it seems invoke_method_synchronously() instead raises std::runtime_error for errors. This is a bit confusing, and I'd expect one of:

 1. errors to be reported via the Result<T> return value.
 2. errors to be reported via exceptions, and invoke_method_synchronously return the result directly rather than using the Result wrapper.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.