#include <calc_error.hpp>
Public Member Functions | |
function_error (std::string const &name, std::size_t expected, std::size_t actual) | |
Private Member Functions | |
std::string | msg (std::string const &name, std::size_t expected, std::size_t actual) |
Definition at line 31 of file calc_error.hpp.
function_error::function_error | ( | std::string const & | name, | |
std::size_t | expected, | |||
std::size_t | actual | |||
) | [inline] |
Definition at line 34 of file calc_error.hpp.
00035 : calc_error(msg(name, expected, actual)) 00036 {}
std::string function_error::msg | ( | std::string const & | name, | |
std::size_t | expected, | |||
std::size_t | actual | |||
) | [private] |
Definition at line 5 of file calc_error.cpp.
00006 { 00007 std::ostringstream stream; 00008 stream << "wrong number of arguments in call to " + name + "(), expected " << expected << ", got " << actual; 00009 return stream.str(); 00010 }