MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / create

Method create

dependencies/json/json.hpp:2503–2508  ·  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 object */

Source from the content-addressed store, hash-verified

2501 @return parse_error object
2502 */
2503 static parse_error create(int id_, const position_t& pos, const std::string& what_arg)
2504 {
2505 std::string w = exception::name("parse_error", id_) + "parse error" +
2506 position_string(pos) + ": " + what_arg;
2507 return parse_error(id_, pos.chars_read_total, w.c_str());
2508 }
2509
2510 static parse_error create(int id_, std::size_t byte_, const std::string& what_arg)
2511 {

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
parse_errorClass · 0.70

Tested by

no test coverage detected