7 #ifndef MESSAGE_EXCEPTION_H
8 #define MESSAGE_EXCEPTION_H
17 #include <boost/lexical_cast.hpp>
40 :
isc::
Exception(file, line, what), id_(id), lineno_(lineno)
43 args_.push_back(boost::lexical_cast<std::string>(lineno));
56 MessageID id,
const std::string& arg1,
int lineno)
57 :
isc::
Exception(file, line, what), id_(id), lineno_(lineno)
60 args_.push_back(boost::lexical_cast<std::string>(lineno));
62 args_.push_back(arg1);
76 const std::string& arg2,
int lineno)
77 :
isc::
Exception(file, line, what), id_(id), lineno_(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_;
112 #endif // MESSAGE_EXCEPTION_H
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.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
MessageException(const char *file, size_t line, const char *what, MessageID id, const std::string &arg1, const std::string &arg2, int lineno)
Constructor.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
MessageException(const char *file, size_t line, const char *what, MessageID id, int lineno)
Constructor.
~MessageException()
Destructor.