From 07f13637f035740e474677ad5d76cdafcd3560d7 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 11 Sep 2013 00:51:16 +0200 Subject: Fixed (ICE-4908) - Review handling of DbExceptions in Freeze --- cpp/src/Freeze/ObjectStore.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'cpp/src/Freeze/ObjectStore.cpp') diff --git a/cpp/src/Freeze/ObjectStore.cpp b/cpp/src/Freeze/ObjectStore.cpp index 55d5e243c66..189ffe4ad49 100644 --- a/cpp/src/Freeze/ObjectStore.cpp +++ b/cpp/src/Freeze/ObjectStore.cpp @@ -208,7 +208,15 @@ Freeze::ObjectStoreBase::~ObjectStoreBase() for(size_t i = 0; i < _indices.size(); ++i) { - _indices[i]->_impl->close(); + try + { + _indices[i]->_impl->close(); + } + catch(const DatabaseException& ex) + { + Ice::Error error(_communicator->getLogger()); + error << "Freeze: closing ObjectStore " << _dbName << " raised DatabaseException: " << ex.what(); + } } _indices.clear(); } -- cgit v1.2.3