Move getErrCodeMsg API to common_utility

This commit moves the getErrCodeMsg API from vpd_specific_utility to
common_utility file, to make it accessible to the other utility files.

Change-Id: Ib0aeeb2386ba2c55f2447d65a3be18b76eff46f3
Signed-off-by: Rekha Aparna <vrekhaaparna@ibm.com>
diff --git a/vpd-manager/src/event_logger.cpp b/vpd-manager/src/event_logger.cpp
index 9959d2f..9ae45a7 100644
--- a/vpd-manager/src/event_logger.cpp
+++ b/vpd-manager/src/event_logger.cpp
@@ -7,6 +7,7 @@
 
 #include <systemd/sd-bus.h>
 
+#include <utility/common_utility.hpp>
 #include <utility/json_utility.hpp>
 #include <utility/vpd_specific_utility.hpp>
 
@@ -363,7 +364,7 @@
                             "Failed to parse JSON file [ " +
                             std::string(INVENTORY_JSON_SYM_LINK) +
                             " ], error : " +
-                            vpdSpecificUtility::getErrCodeMsg(l_errCode));
+                            commonUtility::getErrCodeMsg(l_errCode));
                     }
 
                     l_calloutInvPath = jsonUtility::getInventoryObjPathFromJson(
@@ -385,8 +386,8 @@
             {
                 logging::logMessage(
                     "Failed to get inventory object path from JSON for FRU [" +
-                    std::get<0>(i_callouts[0]) + "], error : " +
-                    vpdSpecificUtility::getErrCodeMsg(l_errCode));
+                    std::get<0>(i_callouts[0]) +
+                    "], error : " + commonUtility::getErrCodeMsg(l_errCode));
             }
         }