| 2565 | { |
| 2566 | public: |
| 2567 | static type_error create(int id_, const std::string& what_arg) |
| 2568 | { |
| 2569 | std::string w = exception::name("type_error", id_) + what_arg; |
| 2570 | return type_error(id_, w.c_str()); |
| 2571 | } |
| 2572 | |
| 2573 | private: |
| 2574 | JSON_HEDLEY_NON_NULL(3) |