Fixed the variable code, replacing it with simpler arguments and using exceptions...
[fridhskrift.git] / variable / error.cpp
blob8a46a2fc8cf828767e50c4989cc15c32e79b80a2
1 #include <ail/exception.hpp>
2 #include <fridh/symbol.hpp>
4 namespace fridh
6 void unary_argument_type_error(std::string const & operation, variable_type type)
8 throw ail::exception(operation + ": Invalid argument type \"" + get_type_string(type) + "\"");
11 void binary_argument_type_error(std::string const & operation, variable_type left, variable_type right)
13 throw ail::exception(operation + ": Invalid argument types \"" + get_type_string(left) + "\", \"" + get_type_string(right));