13#include <database/db_messages.h>
40 DATABASE_CQL_CONNECTION_BEGIN_TRANSACTION },
57 }
catch (
const std::out_of_range&) {
A generic exception that is thrown when an unexpected error condition occurs.
const MessageMap & map_
The translation map.
const isc::log::MessageID & translateMessage(const DbMessageID &id) const
Translate message.
std::map< DbMessageID, isc::log::MessageID > MessageMap
Translation map type.
We want to reuse the database backend connection and exchange code for other uses,...
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
const int DB_DBG_TRACE_DETAIL
Database logging levels.
isc::log::Logger database_logger("database")
Common database library logger.
std::list< DbLogger > DbLoggerStack
Database logger stack.
DbMessageID
Database messages.
@ CQL_CONNECTION_BEGIN_TRANSACTION
@ MYSQL_START_TRANSACTION
@ PGSQL_START_TRANSACTION
@ CQL_CONNECTION_ROLLBACK
DbLoggerStack db_logger_stack
Global database logger stack (initialized to dhcpsrv logger)
void checkDbLoggerStack()
Check database logger stack.
const DbLogger::MessageMap db_message_map
Map of translated messages.
DbLogger db_logger_translator(database_logger, db_message_map)
Database logger translator.
const int DBGLVL_TRACE_DETAIL
Trace detailed operations.
Defines the logger used by the top-level component of kea-dhcp-ddns.