sensor-monitor: Catch sdbusplus::exception
Check for a threshold alarm D-Bus property fail read by looking for an
sdbusplus exception instead of one of the built in fan exceptions.
The SdBusPlus wrapper call used here to get the property doesn't throw
any of the fan custom exceptions, and there are cases when the call can
fail, like when entity-manager only defines a high threshold and not a
low one for a sensor so the low alarm property won't be on D-Bus.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I19332603a373436f68ba075844fa3436787ef8b0
1 file changed