@brief exception indicating access out of the defined range @sa https://json.nlohmann.me/api/basic_json/out_of_range/
| 4484 | /// @brief exception indicating access out of the defined range |
| 4485 | /// @sa https://json.nlohmann.me/api/basic_json/out_of_range/ |
| 4486 | class out_of_range : public exception |
| 4487 | { |
| 4488 | public: |
| 4489 | template<typename BasicJsonContext, enable_if_t<is_basic_json_context<BasicJsonContext>::value, int> = 0> |
| 4490 | static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context) |
| 4491 | { |
| 4492 | std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg); |
| 4493 | return {id_, w.c_str()}; |
| 4494 | } |
| 4495 | |
| 4496 | private: |
| 4497 | JSON_HEDLEY_NON_NULL(3) |
| 4498 | out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {} |
| 4499 | }; |
| 4500 | |
| 4501 | /// @brief exception indicating other library errors |
| 4502 | /// @sa https://json.nlohmann.me/api/basic_json/other_error/ |