18: file_(file), line_(line), what_(what) {
19 std::stringstream location;
20 location << what_ <<
"[" << file_ <<
":" << line_ <<
"]";
21 verbose_what_ = location.str();
25 : file_(file), line_(line), what_(what) {
26 std::stringstream location;
27 location << what_ <<
"[" << file_ <<
":" << line_ <<
"]";
28 verbose_what_ = location.str();
45 return (verbose_what_.c_str());
47 return (what_.c_str());
52 return (
"isc::Exception");
This is a base class for exceptions thrown from the DNS library module.
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Defines the logger used by the top-level component of kea-lfc.