MCPcopy Create free account
hub / github.com/ThePhD/sol2 / get_error_exception

Function get_error_exception

include/sol/stack.hpp:373–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 }
372
373 inline detail::error_exception get_error_exception(lua_State* L, int target) {
374 auto maybe_exc = stack::check_get<detail::error_exception&>(L, target);
375 if (maybe_exc.has_value()) {
376 return maybe_exc.value();
377 }
378 return detail::error_exception(detail::direct_error, stack::get<std::string>(L, target));
379 }
380 }
381 } // namespace stack
382} // namespace sol

Callers

nothing calls this directly

Calls 3

error_exceptionClass · 0.85
has_valueMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected