! @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.excep
| 2508 | @since version 3.0.0 |
| 2509 | */ |
| 2510 | class invalid_iterator : public exception |
| 2511 | { |
| 2512 | public: |
| 2513 | static invalid_iterator create(int id_, const std::string& what_arg) |
| 2514 | { |
| 2515 | std::string w = exception::name("invalid_iterator", id_) + what_arg; |
| 2516 | return invalid_iterator(id_, w.c_str()); |
| 2517 | } |
| 2518 | |
| 2519 | private: |
| 2520 | JSON_HEDLEY_NON_NULL(3) |
| 2521 | invalid_iterator(int id_, const char* what_arg) |
| 2522 | : exception(id_, what_arg) {} |
| 2523 | }; |
| 2524 | |
| 2525 | /*! |
| 2526 | @brief exception indicating executing a member function with a wrong type |