MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / invalid_iterator

Class invalid_iterator

Source/Utils/json.hpp:2510–2523  ·  view source on GitHub ↗

! @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

Source from the content-addressed store, hash-verified

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

Callers 1

createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected