Define error codes for json_utility API's
This commit defines error codes for the errors that can be thrown by
json_utility APIs.
Change-Id: If783c6389d14fcba45662facfc98574643d7fe5c
Signed-off-by: Rekha Aparna <vrekhaaparna@ibm.com>
diff --git a/vpd-manager/include/error_codes.hpp b/vpd-manager/include/error_codes.hpp
new file mode 100644
index 0000000..737d4e5
--- /dev/null
+++ b/vpd-manager/include/error_codes.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+namespace vpd
+{
+namespace error_code
+{
+// File exceptions
+static constexpr auto FILE_NOT_FOUND = 1001;
+static constexpr auto FILE_ACCESS_ERROR = 1002;
+static constexpr auto EMPTY_FILE = 1003;
+
+// JSON exceptions
+static constexpr auto INVALID_JSON = 2001;
+static constexpr auto MISSING_FLAG = 2002;
+static constexpr auto MISSING_ACTION_TAG = 2003;
+static constexpr auto FRU_PATH_NOT_FOUND = 2004;
+
+// Generic errors.
+static constexpr auto INVALID_INPUT_PARAMATER = 3001;
+} // namespace error_code
+} // namespace vpd