| 2076 | { |
| 2077 | public: |
| 2078 | static type_error create(int id_, const std::string& what_arg) |
| 2079 | { |
| 2080 | std::string w = exception::name("type_error", id_) + what_arg; |
| 2081 | return type_error(id_, w.c_str()); |
| 2082 | } |
| 2083 | |
| 2084 | private: |
| 2085 | JSON_HEDLEY_NON_NULL(3) |