MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / type_error

Class type_error

extern/json/json.hpp:4473–4486  ·  view source on GitHub ↗

@brief exception indicating executing a member function with a wrong type @sa https://json.nlohmann.me/api/basic_json/type_error/

Source from the content-addressed store, hash-verified

4471/// @brief exception indicating executing a member function with a wrong type
4472/// @sa https://json.nlohmann.me/api/basic_json/type_error/
4473class type_error : public exception
4474{
4475 public:
4476 template<typename BasicJsonContext, enable_if_t<is_basic_json_context<BasicJsonContext>::value, int> = 0>
4477 static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
4478 {
4479 const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
4480 return {id_, w.c_str()};
4481 }
4482
4483 private:
4484 JSON_HEDLEY_NON_NULL(3)
4485 type_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
4486};
4487
4488/// @brief exception indicating access out of the defined range
4489/// @sa https://json.nlohmann.me/api/basic_json/out_of_range/

Callers 8

multiple_values_errorMethod · 0.85
vector_buffer_implFunction · 0.85
no_nullptrFunction · 0.85
construct_alias_from_cppFunction · 0.85
constructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected