Skip to content
Snippets Groups Projects
Commit 87bcbfd5 authored by Steven Murray's avatar Steven Murray
Browse files

RdbmsArchiveFileItorImpl now propagates exception::LostDatabaseConnection properly

parent 15b4b372
No related branches found
No related tags found
No related merge requests found
Pipeline #32474 failed
......@@ -19,6 +19,7 @@
#include "catalogue/ArchiveFileItor.hpp"
#include "catalogue/RdbmsArchiveFileItorImpl.hpp"
#include "common/exception/Exception.hpp"
#include "common/exception/LostDatabaseConnection.hpp"
namespace cta {
namespace catalogue {
......@@ -232,6 +233,8 @@ RdbmsArchiveFileItorImpl::RdbmsArchiveFileItorImpl(
m_rset = m_stmt.executeQuery();
m_rsetIsEmpty = !m_rset.next();
} catch (exception::LostDatabaseConnection &le) {
throw exception::LostDatabaseConnection(std::string(__FUNCTION__) + " failed: " + le.getMessage().str());
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment