summaryrefslogtreecommitdiffstats
path: root/user_mgr.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-16 15:59:29 -0700
committerPatrick Venture <venture@google.com>2018-10-16 16:00:31 -0700
commit045b11231d53983577c4448f08d41d19b36409cb (patch)
tree4468ce3b9484cee27a530783b927cdf10d0bce35 /user_mgr.cpp
parentc704519ef29cf46473eddb670f311eead83c357d (diff)
downloadphosphor-user-manager-045b11231d53983577c4448f08d41d19b36409cb.tar.gz
phosphor-user-manager-045b11231d53983577c4448f08d41d19b36409cb.zip
user_mgr: throw original exception
[user_mgr.cpp:696]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. [user_mgr.cpp:923]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. [user_mgr.cpp:949]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. [user_mgr.cpp:974]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. [user_mgr.cpp:999]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. Change-Id: I57243acf997c248b38f52926c0a8dd525b32cc90 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'user_mgr.cpp')
-rw-r--r--user_mgr.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/user_mgr.cpp b/user_mgr.cpp
index 786a8fd..c5b068d 100644
--- a/user_mgr.cpp
+++ b/user_mgr.cpp
@@ -693,7 +693,7 @@ bool UserMgr::userLockedForFailedAttempt(const std::string &userName)
{
log<level::ERR>("Exception for userLockedForFailedAttempt",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
}
log<level::ERR>("Unable to get user account failed attempt",
@@ -920,7 +920,7 @@ UserMgr::UserMgr(sdbusplus::bus::bus &bus, const char *path) :
{
log<level::ERR>("Exception for MinPasswordLength",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
AccountPolicyIface::minPasswordLength(value);
}
@@ -946,7 +946,7 @@ UserMgr::UserMgr(sdbusplus::bus::bus &bus, const char *path) :
{
log<level::ERR>("Exception for RememberOldPasswordTimes",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
AccountPolicyIface::rememberOldPasswordTimes(value);
}
@@ -971,7 +971,7 @@ UserMgr::UserMgr(sdbusplus::bus::bus &bus, const char *path) :
{
log<level::ERR>("Exception for MaxLoginAttemptBeforLockout",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
AccountPolicyIface::maxLoginAttemptBeforeLockout(value16);
}
@@ -996,7 +996,7 @@ UserMgr::UserMgr(sdbusplus::bus::bus &bus, const char *path) :
{
log<level::ERR>("Exception for AccountUnlockTimeout",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
AccountPolicyIface::accountUnlockTimeout(value32);
}
OpenPOWER on IntegriCloud