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>
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 @@
{
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 @@
{
log<level::ERR>("Exception for MinPasswordLength",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
AccountPolicyIface::minPasswordLength(value);
}
@@ -946,7 +946,7 @@
{
log<level::ERR>("Exception for RememberOldPasswordTimes",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
AccountPolicyIface::rememberOldPasswordTimes(value);
}
@@ -971,7 +971,7 @@
{
log<level::ERR>("Exception for MaxLoginAttemptBeforLockout",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
AccountPolicyIface::maxLoginAttemptBeforeLockout(value16);
}
@@ -996,7 +996,7 @@
{
log<level::ERR>("Exception for AccountUnlockTimeout",
entry("WHAT=%s", e.what()));
- throw e;
+ throw;
}
AccountPolicyIface::accountUnlockTimeout(value32);
}