\brief Exception thrown in the case that a method dispatch fails because no matching function was found May be thrown due to an arity_error, a guard_error or a bad_boxed_cast exception
| 811 | /// May be thrown due to an arity_error, a guard_error or a bad_boxed_cast |
| 812 | /// exception |
| 813 | class dispatch_error : public std::runtime_error |
| 814 | { |
| 815 | public: |
| 816 | dispatch_error(std::vector<Boxed_Value> t_parameters, |
| 817 | std::vector<Const_Proxy_Function> t_functions) |
| 818 | : std::runtime_error("Error with function dispatch"), parameters(std::move(t_parameters)), functions(std::move(t_functions)) |
| 819 | { |
| 820 | } |
| 821 | |
| 822 | dispatch_error(std::vector<Boxed_Value> t_parameters, |
| 823 | std::vector<Const_Proxy_Function> t_functions, |
| 824 | const std::string &t_desc) |
| 825 | : std::runtime_error(t_desc), parameters(std::move(t_parameters)), functions(std::move(t_functions)) |
| 826 | { |
| 827 | } |
| 828 | |
| 829 | |
| 830 | dispatch_error(const dispatch_error &) = default; |
| 831 | ~dispatch_error() noexcept override = default; |
| 832 | |
| 833 | std::vector<Boxed_Value> parameters; |
| 834 | std::vector<Const_Proxy_Function> functions; |
| 835 | }; |
| 836 | } |
| 837 | |
| 838 | namespace dispatch |
no outgoing calls
no test coverage detected