MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / dispatch_error

Class dispatch_error

include/chaiscript/dispatchkit/proxy_functions.hpp:813–835  ·  view source on GitHub ↗

\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

Source from the content-addressed store, hash-verified

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

Callers 2

call_memberMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected