function_error Class Reference

#include <calc_error.hpp>

Inheritance diagram for function_error:

calc_error

List of all members.

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)


Detailed Description

Exception class for function call problems.

Definition at line 34 of file calc_error.hpp.


Constructor & Destructor Documentation

function_error::function_error ( std::string const &  name,
std::size_t  expected,
std::size_t  actual 
) [inline]

Definition at line 37 of file calc_error.hpp.

00038   : calc_error(msg(name, expected, actual))
00039   {}


Member Function Documentation

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 }


The documentation for this class was generated from the following files:
Generated on Sun Nov 30 10:05:27 2008 for Calculator by  doxygen 1.5.3