MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / create

Method create

external/json/json.hpp:894–899  ·  view source on GitHub ↗

! @brief create a parse error exception @param[in] id_ the id of the exception @param[in] position 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

892 @return parse_error object
893 */
894 static parse_error create(int id_, const position_t& pos, const std::string& what_arg)
895 {
896 std::string w = exception::name("parse_error", id_) + "parse error" +
897 position_string(pos) + ": " + what_arg;
898 return parse_error(id_, pos.chars_read_total, w.c_str());
899 }
900
901 static parse_error create(int id_, std::size_t byte_, const std::string& what_arg)
902 {

Callers

nothing calls this directly

Calls 2

parse_errorClass · 0.85
to_stringFunction · 0.85

Tested by

no test coverage detected