TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ create() [1/2]

template<typename BasicJsonType >
static parse_error nlohmann::detail::parse_error::create ( int  id_,
const position_t pos,
const std::string &  what_arg,
const BasicJsonType &  context 
)
inlinestatic

create a parse error exception

Parameters
[in]id_the id of the exception
[in]posthe position where the error occurred (or with chars_read_total=0 if the position cannot be determined)
[in]what_argthe explanatory string
Returns
parse_error object

Definition at line 2800 of file json.hpp.

2801 {
2802 std::string w = exception::name("parse_error", id_) + "parse error" +
2803 position_string(pos) + ": " + exception::diagnostics(context) + what_arg;
2804 return parse_error(id_, pos.chars_read_total, w.c_str());
2805 }