MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / handle_errors

Function handle_errors

Dependencies/sol/include/sol/error.hpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 };
53
54 inline int handle_errors(lua_State* L, const error_result& er) {
55 if (er.format_string == nullptr) {
56 return er.results;
57 }
58 return luaL_error(L, er.format_string, er.argument_strings[0], er.argument_strings[1], er.argument_strings[2], er.argument_strings[3]);
59 }
60
61 class error_exception : public std::runtime_error {
62 public:

Callers 8

atMethod · 0.85
getMethod · 0.85
setMethod · 0.85
addMethod · 0.85
insertMethod · 0.85
findMethod · 0.85
index_ofMethod · 0.85
eraseMethod · 0.85

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected