MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / other_error

Class other_error

native/thirdpart/json/json.hpp:2160–2172  ·  view source on GitHub ↗

! @brief exception indicating other library errors This exception is thrown in case of errors that cannot be classified with the other exception types. Exceptions have ids 5xx. name / id | example message | description ------------------------------ | --------------- | ------------------------- json.exception.other_error.501 | unsuccessful: {"op":"test","path":"/baz", "valu

Source from the content-addressed store, hash-verified

2158@since version 3.0.0
2159*/
2160class other_error : public exception
2161{
2162 public:
2163 static other_error create(int id_, const std::string& what_arg)
2164 {
2165 std::string w = exception::name("other_error", id_) + what_arg;
2166 return other_error(id_, w.c_str());
2167 }
2168
2169 private:
2170 JSON_HEDLEY_NON_NULL(3)
2171 other_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
2172};
2173} // namespace detail
2174} // namespace nlohmann
2175

Callers 1

createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected