Error code for getExpandedLocationCode API

This commit updates getExpnadedLocationCode API to set error code in
case of error. This helps the caller of API to take action based on the
error code returned from the API.

Change-Id: I1570e13ca782f9320f1fc7e43680807d232e6310
Signed-off-by: Rekha Aparna <vrekhaaparna@ibm.com>
diff --git a/vpd-manager/include/error_codes.hpp b/vpd-manager/include/error_codes.hpp
index 2f4ccd5..91a16bc 100644
--- a/vpd-manager/include/error_codes.hpp
+++ b/vpd-manager/include/error_codes.hpp
@@ -32,11 +32,14 @@
     GPIO_LINE_EXCEPTION,
     ERROR_PROCESSING_SYSTEM_CMD,
     STANDARD_EXCEPTION,
+    DBUS_FAILURE,
 
     // VPD specific errors
     UNSUPPORTED_VPD_TYPE,
     KEYWORD_NOT_FOUND,
-    OUT_OF_BOUND_EXCEPTION
+    OUT_OF_BOUND_EXCEPTION,
+    FAILED_TO_DETECT_LOCATION_CODE_TYPE,
+    RECEIVED_INVALID_KWD_TYPE_FROM_DBUS
 };
 
 const std::unordered_map<int, std::string> errorCodeMap = {
@@ -70,5 +73,10 @@
     {error_code::OUT_OF_BOUND_EXCEPTION, "Out of bound error"},
     {error_code::UNSUPPORTED_VPD_TYPE, "This VPD type is not supported"},
     {error_code::STANDARD_EXCEPTION, "Standard Exception thrown"},
-    {error_code::FILE_SYSTEM_ERROR, "File system error."}};
+    {error_code::FILE_SYSTEM_ERROR, "File system error."},
+    {error_code::FAILED_TO_DETECT_LOCATION_CODE_TYPE,
+     "Failed to detect location code type"},
+    {error_code::DBUS_FAILURE, "Dbus call failed"},
+    {error_code::RECEIVED_INVALID_KWD_TYPE_FROM_DBUS,
+     "Received invalid keyword data type from DBus."}};
 } // namespace vpd