Throw exceptions on password update failure

Change-Id: I78112212b0f436c6d3b05cb1f16015c2d6bb5089
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/user.hpp b/user.hpp
index 4c18c7a..44dd3a3 100644
--- a/user.hpp
+++ b/user.hpp
@@ -120,6 +120,14 @@
                            const std::string& tempFile,
                            const std::string& password,
                            const std::string& salt);
+
+        /** @brief Wrapper for raising exception
+         *
+         *  @param[in] errNo  - errno
+         *  @param[in] errMsg - Error message
+         */
+        void raiseException(int errNo,
+                            const std::string& errMsg);
 };
 
 } // namespace user