MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / create

Method create

Source/Utils/json.hpp:2436–2441  ·  view source on GitHub ↗

! @brief create a parse error exception @param[in] id_ the id of the exception @param[in] pos the position where the error occurred (or with chars_read_total=0 if the position cannot be determined) @param[in] what_arg the explanatory string @return parse_error

Source from the content-addressed store, hash-verified

2434 @return parse_error object
2435 */
2436 static parse_error create(int id_, const position_t& pos, const std::string& what_arg)
2437 {
2438 std::string w = exception::name("parse_error", id_) + "parse error" +
2439 position_string(pos) + ": " + what_arg;
2440 return parse_error(id_, pos.chars_read_total, w.c_str());
2441 }
2442
2443 static parse_error create(int id_, std::size_t byte_, const std::string& what_arg)
2444 {

Callers

nothing calls this directly

Calls 1

parse_errorClass · 0.85

Tested by

no test coverage detected