@@ -189,7 +189,7 @@ ClientConnection::ClientConnection(const std::string& logicalAddress, const std:
189189 LOG_INFO (cnxString_ << " Create ClientConnection, timeout=" << clientConfiguration.getConnectionTimeout ());
190190 if (!authentication_) {
191191 LOG_ERROR (" Invalid authentication plugin" );
192- throw ResultException{ ResultAuthenticationError} ;
192+ throw ResultAuthenticationError;
193193 }
194194 if (clientConfiguration.isUseTls ()) {
195195#if BOOST_VERSION >= 105400
@@ -211,7 +211,7 @@ ClientConnection::ClientConnection(const std::string& logicalAddress, const std:
211211 ctx.load_verify_file (trustCertFilePath);
212212 } else {
213213 LOG_ERROR (trustCertFilePath << " : No such trustCertFile" );
214- throw ResultException{ ResultAuthenticationError} ;
214+ throw ResultAuthenticationError;
215215 }
216216 } else {
217217 ctx.set_default_verify_paths ();
@@ -228,11 +228,11 @@ ClientConnection::ClientConnection(const std::string& logicalAddress, const std:
228228 tlsPrivateKey = authData->getTlsPrivateKey ();
229229 if (!file_exists (tlsCertificates)) {
230230 LOG_ERROR (tlsCertificates << " : No such tlsCertificates" );
231- throw ResultException{ ResultAuthenticationError} ;
231+ throw ResultAuthenticationError;
232232 }
233233 if (!file_exists (tlsCertificates)) {
234234 LOG_ERROR (tlsCertificates << " : No such tlsCertificates" );
235- throw ResultException{ ResultAuthenticationError} ;
235+ throw ResultAuthenticationError;
236236 }
237237 ctx.use_private_key_file (tlsPrivateKey, boost::asio::ssl::context::pem);
238238 ctx.use_certificate_file (tlsCertificates, boost::asio::ssl::context::pem);
0 commit comments