Handling of PELs while collecting system VPD
The commit updates handling of PEL in the path of system VPD collection.
Any error in the flow needs to be handled at worker end and should not
be propagated to Manager preventing service from failing.
Change-Id: Ia06e5a4debe2fd3f8541d7975509449e86b23fcc
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/vpd-manager/include/worker.hpp b/vpd-manager/include/worker.hpp
index 8aa5909..ccd9ca4 100644
--- a/vpd-manager/include/worker.hpp
+++ b/vpd-manager/include/worker.hpp
@@ -184,7 +184,7 @@
* If device tree change is required, it updates the "fitconfig" and reboots
* the system. Else it is NOOP.
*
- * @throw std::runtime_error
+ * @throw std::exception
*/
void setDeviceTreeAndJson();
@@ -222,6 +222,8 @@
/**
* @brief An API to parse given VPD file path.
*
+ * @throw std::exception
+ *
* @param[in] vpdFilePath - EEPROM file path.
* @param[out] parsedVpd - Parsed VPD as a map.
*/