@brief exception indicating executing a member function with a wrong type @sa https://json.nlohmann.me/api/basic_json/type_error/
| 4471 | /// @brief exception indicating executing a member function with a wrong type |
| 4472 | /// @sa https://json.nlohmann.me/api/basic_json/type_error/ |
| 4473 | class 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/ |
no outgoing calls
no test coverage detected