diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-09-06 17:19:56 +0530 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-10-12 23:37:01 +0530 |
commit | 36218e6c390401748fb13cd05670aeb86cb8d0c2 (patch) | |
tree | c75b2ded0a12663df222837a6a73a8add2d0567f /user.hpp | |
parent | 070a3e49fdd8a6ecd5c71f6ee018ebe89ccd7a1f (diff) | |
download | phosphor-user-manager-36218e6c390401748fb13cd05670aeb86cb8d0c2.tar.gz phosphor-user-manager-36218e6c390401748fb13cd05670aeb86cb8d0c2.zip |
Throw exceptions on password update failure
Change-Id: I78112212b0f436c6d3b05cb1f16015c2d6bb5089
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'user.hpp')
-rw-r--r-- | user.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -120,6 +120,14 @@ class User : public Interface 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 |