summaryrefslogtreecommitdiffstats
path: root/control/functor.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-07-17 10:51:36 -0500
committerMatthew Barth <msbarth@us.ibm.com>2018-07-17 10:51:36 -0500
commit86be476bfb6acfd413afff449a357123639eb29e (patch)
tree4f4f2f24500a4e54e01bdec5b6a392eb59ffdda7 /control/functor.hpp
parentb0de1d6a88cee65cfc1041d26e04ac443ca1af4a (diff)
downloadphosphor-fan-presence-86be476bfb6acfd413afff449a357123639eb29e.tar.gz
phosphor-fan-presence-86be476bfb6acfd413afff449a357123639eb29e.zip
Handle SdBusError exceptions
When the SdBusError exception was added, all sdbusplus::bus::call function use required this exception be handled appropriately in each case where it could occur. These changes are the result of handling the possibility of this exception correctly within the fan applications. Change-Id: I6ecef3008412b299a4fedbb13716f656cfbf1a90 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/functor.hpp')
-rw-r--r--control/functor.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/control/functor.hpp b/control/functor.hpp
index 17ae3af..e86bae7 100644
--- a/control/functor.hpp
+++ b/control/functor.hpp
@@ -113,7 +113,12 @@ struct PropertyChanged
_property);
_handler(zone, std::forward<T>(val));
}
- catch (const util::DBusError& e)
+ catch (const sdbusplus::exception::SdBusError&)
+ {
+ // Property will not be used unless a property changed
+ // signal message is received for this property.
+ }
+ catch (const util::DBusError&)
{
// Property will not be used unless a property changed
// signal message is received for this property.
OpenPOWER on IntegriCloud