16 #ifndef BOOST_FORMAT_EXCEPTIONS_HPP 17 #define BOOST_FORMAT_EXCEPTIONS_HPP 33 virtual const char *
what()
const throw() {
34 return "boost::format_error: " 35 "format generic failure";
44 : pos_(pos), next_(size) {}
45 std::size_t
get_pos()
const {
return pos_; }
47 virtual const char *
what()
const throw() {
48 return "boost::bad_format_string: format-string is ill-formed";
57 : cur_(cur), expected_(expected) {}
58 std::size_t
get_cur()
const {
return cur_; }
60 virtual const char *
what()
const throw() {
61 return "boost::too_few_args: " 62 "format-string referred to more arguments than were passed";
71 : cur_(cur), expected_(expected) {}
72 std::size_t
get_cur()
const {
return cur_; }
74 virtual const char *
what()
const throw() {
75 return "boost::too_many_args: " 76 "format-string referred to less arguments than were passed";
86 : index_(index), beg_(beg), end_(end) {}
90 virtual const char *
what()
const throw() {
91 return "boost::out_of_range: " 92 "tried to refer to an argument (or item) number which" 93 " is out of range, according to the format string";
103 #endif // BOOST_FORMAT_EXCEPTIONS_HPP
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
virtual const char * what() const
std::size_t get_expected() const
std::size_t get_cur() const
std::size_t get_expected() const
too_many_args(std::size_t cur, std::size_t expected)
std::size_t get_cur() const
out_of_range(int index, int beg, int end)
virtual const char * what() const
too_few_args(std::size_t cur, std::size_t expected)
virtual const char * what() const