MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ExceptionHandler

Method ExceptionHandler

lib/db_ido_pgsql/idopgsqlconnection.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void IdoPgsqlConnection::ExceptionHandler(boost::exception_ptr exp)
133{
134 Log(LogWarning, "IdoPgsqlConnection", "Exception during database operation: Verify that your database is operational!");
135
136 Log(LogDebug, "IdoPgsqlConnection")
137 << "Exception during database operation: " << DiagnosticInformation(std::move(exp));
138
139 if (GetConnected()) {
140 m_Pgsql->finish(m_Connection);
141 SetConnected(false);
142 }
143}
144
145void IdoPgsqlConnection::AssertOnWorkQueue()
146{

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
finishMethod · 0.80

Tested by

no test coverage detected