Use appropriate syntax for rethrowing exceptions.
This commit is contained in:
parent
ab5a0b75db
commit
6c9a32d314
@ -234,23 +234,23 @@ void IMAPConnection::authenticate()
|
||||
authenticateSASL();
|
||||
return;
|
||||
}
|
||||
catch (exceptions::authentication_error& e)
|
||||
catch (exceptions::authentication_error&)
|
||||
{
|
||||
if (!GET_PROPERTY(bool, PROPERTY_OPTIONS_SASL_FALLBACK))
|
||||
{
|
||||
// Can't fallback on normal authentication
|
||||
internalDisconnect();
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ignore, will try normal authentication
|
||||
}
|
||||
}
|
||||
catch (exception& e)
|
||||
catch (exception&)
|
||||
{
|
||||
internalDisconnect();
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
#endif // VMIME_HAVE_SASL_SUPPORT
|
||||
|
@ -233,23 +233,23 @@ void POP3Connection::authenticate(const messageId& randomMID)
|
||||
m_authenticated = true;
|
||||
return;
|
||||
}
|
||||
catch (exceptions::authentication_error& e)
|
||||
catch (exceptions::authentication_error&)
|
||||
{
|
||||
if (!GET_PROPERTY(bool, PROPERTY_OPTIONS_SASL_FALLBACK))
|
||||
{
|
||||
// Can't fallback on APOP/normal authentication
|
||||
internalDisconnect();
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ignore, will try APOP/normal authentication
|
||||
}
|
||||
}
|
||||
catch (exception& e)
|
||||
catch (exception&)
|
||||
{
|
||||
internalDisconnect();
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
#endif // VMIME_HAVE_SASL_SUPPORT
|
||||
|
@ -294,10 +294,10 @@ void SMTPConnection::authenticate()
|
||||
m_authenticated = true;
|
||||
return;
|
||||
}
|
||||
catch (exception& e)
|
||||
catch (exception&)
|
||||
{
|
||||
internalDisconnect();
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
#endif // VMIME_HAVE_SASL_SUPPORT
|
||||
|
Loading…
Reference in New Issue
Block a user