Fix service crash when the exception occurred

Change the catch type to catch all the exception.

Change-Id: Ic49d46ca229b10a3576d9965e5eccf63f3bb6368
Signed-off-by: Will Liang <Will.Liang@quantatw.com>
diff --git a/include/threshold_event_monitor.hpp b/include/threshold_event_monitor.hpp
index 843d672..b1f2eed 100644
--- a/include/threshold_event_monitor.hpp
+++ b/include/threshold_event_monitor.hpp
@@ -159,7 +159,7 @@
         {
             eventData[1] = ipmi::getScaledIPMIValue(sensorVal, max, min);
         }
-        catch (std::runtime_error &e)
+        catch (const std::exception &e)
         {
             std::cerr << e.what();
             eventData[1] = 0xFF;
@@ -201,7 +201,7 @@
         {
             eventData[2] = ipmi::getScaledIPMIValue(thresholdVal, max, min);
         }
-        catch (std::runtime_error &e)
+        catch (const std::exception &e)
         {
             std::cerr << e.what();
             eventData[2] = 0xFF;