! @brief exception indicating errors with iterators This exception is thrown if iterators passed to a library function do not match the expected semantics. Exceptions have ids 2xx. name / id | example message | description ----------------------------------- | --------------- | ------------------------- json.exception.invalid_iterator.201 | iterators are not compatible
| 2019 | @since version 3.0.0 |
| 2020 | */ |
| 2021 | class invalid_iterator : public exception |
| 2022 | { |
| 2023 | public: |
| 2024 | static invalid_iterator create(int id_, const std::string& what_arg) |
| 2025 | { |
| 2026 | std::string w = exception::name("invalid_iterator", id_) + what_arg; |
| 2027 | return invalid_iterator(id_, w.c_str()); |
| 2028 | } |
| 2029 | |
| 2030 | private: |
| 2031 | JSON_HEDLEY_NON_NULL(3) |
| 2032 | invalid_iterator(int id_, const char* what_arg) |
| 2033 | : exception(id_, what_arg) {} |
| 2034 | }; |
| 2035 | |
| 2036 | /*! |
| 2037 | @brief exception indicating executing a member function with a wrong type |