| 4505 | public: |
| 4506 | template<typename BasicJsonContext, enable_if_t<is_basic_json_context<BasicJsonContext>::value, int> = 0> |
| 4507 | static other_error create(int id_, const std::string& what_arg, BasicJsonContext context) |
| 4508 | { |
| 4509 | std::string w = concat(exception::name("other_error", id_), exception::diagnostics(context), what_arg); |
| 4510 | return {id_, w.c_str()}; |
| 4511 | } |
| 4512 | |
| 4513 | private: |
| 4514 | JSON_HEDLEY_NON_NULL(3) |