#538 prevent destructors from throwing exceptions

This commit is contained in:
Guenter Obiltschnig
2014-09-19 10:13:03 +02:00
parent 5a14f72508
commit 85fd968a1e
11 changed files with 100 additions and 24 deletions

View File

@@ -45,7 +45,14 @@ Notifier::Notifier(const Session& session, const Any& value, EnabledEventType en
Notifier::~Notifier()
{
disableAll();
try
{
disableAll();
}
catch (...)
{
poco_unexpected();
}
}

View File

@@ -52,7 +52,14 @@ SQLiteStatementImpl::SQLiteStatementImpl(Poco::Data::SessionImpl& rSession, sqli
SQLiteStatementImpl::~SQLiteStatementImpl()
{
clear();
try
{
clear();
}
catch (...)
{
poco_unexpected();
}
}

View File

@@ -57,7 +57,14 @@ SessionImpl::SessionImpl(const std::string& fileName, std::size_t loginTimeout):
SessionImpl::~SessionImpl()
{
close();
try
{
close();
}
catch (...)
{
poco_unexpected();
}
}