Commit 33deff72 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[trac613] use the rethrow idiom instead of explicitly resending the same exception object.

parent bb708b65
......@@ -271,7 +271,7 @@ configureAuthServer(AuthSrv& server, ConstElementPtr config_set) {
parsers.push_back(parser);
}
} catch (const AuthConfigError& ex) {
throw ex; // simply rethrowing it
throw; // simply rethrowing it
} catch (const isc::Exception& ex) {
isc_throw(AuthConfigError, "Server configuration failed: " <<
ex.what());
......
......@@ -643,7 +643,7 @@ Resolver::setListenAddresses(const vector<addr_t>& addresses) {
dlog(string("Rollback failed with: ") + e2.what(),true);
abort();
}
throw e; // Let it fly a little bit further
throw; // Let it fly a little bit further
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment