7#ifndef MESSAGE_EXCEPTION_H
8#define MESSAGE_EXCEPTION_H
17#include <boost/lexical_cast.hpp>
43 args_.push_back(boost::lexical_cast<std::string>(lineno));
56 MessageID id,
const std::string& arg1,
int lineno)
60 args_.push_back(boost::lexical_cast<std::string>(lineno));
62 args_.push_back(arg1);
76 const std::string& arg2,
int lineno)
80 args_.push_back(boost::lexical_cast<std::string>(lineno));
82 args_.push_back(arg1);
83 args_.push_back(arg2);
105 std::vector<std::string> args_;
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
~MessageException()
Destructor.
MessageException(const char *file, size_t line, const char *what, MessageID id, const std::string &arg1, const std::string &arg2, int lineno)
Constructor.
MessageException(const char *file, size_t line, const char *what, MessageID id, int lineno)
Constructor.
MessageException(const char *file, size_t line, const char *what, MessageID id, const std::string &arg1, int lineno)
Constructor.
std::vector< std::string > arguments() const
Return Arguments.
MessageID id() const
Return Message ID.
Defines the logger used by the top-level component of kea-lfc.