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/wait-vpd-parser/src/prime_inventory.cpp b/wait-vpd-parser/src/prime_inventory.cpp
index 84688d0..79125fe 100644
--- a/wait-vpd-parser/src/prime_inventory.cpp
+++ b/wait-vpd-parser/src/prime_inventory.cpp
@@ -2,6 +2,7 @@
 
 #include "event_logger.hpp"
 #include "exceptions.hpp"
+#include "utility/common_utility.hpp"
 #include "utility/dbus_utility.hpp"
 #include "utility/json_utility.hpp"
 #include "utility/vpd_specific_utility.hpp"
@@ -20,8 +21,8 @@
         {
             throw std::runtime_error(
                 "JSON parsing failed for file [ " +
-                std::string(INVENTORY_JSON_SYM_LINK) + " ], error : " +
-                vpd::vpdSpecificUtility::getErrCodeMsg(l_errCode));
+                std::string(INVENTORY_JSON_SYM_LINK) +
+                " ], error : " + vpd::commonUtility::getErrCodeMsg(l_errCode));
         }
 
         // check for mandatory fields at this point itself.