12#include <boost/lexical_cast.hpp>
18 const std::string& header_value)
19 : header_name_(header_name), header_value_(header_value) {
25 return (boost::lexical_cast<uint64_t>(header_value_));
27 }
catch (
const boost::bad_lexical_cast& ex) {
29 << header_value_ <<
" is not a valid number");
35 std::string ln = header_name_;
42 std::string lc = header_value_;
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
void lowercase(string &text)
Convert string to lowercase.
Defines the logger used by the top-level component of kea-lfc.