CUDNN Frontend API
8.3.0
|
exception indicating other library errors More...
#include <json.hpp>
Static Public Member Functions | |
template<typename BasicJsonType > | |
static other_error | create (int id_, const std::string &what_arg, const BasicJsonType &context) |
Private Member Functions | |
other_error (int id_, const char *what_arg) | |
Additional Inherited Members | |
![]() | |
const char * | what () const noexcept override |
returns the explanatory string More... | |
![]() | |
const int | id |
the id of the exception More... | |
![]() | |
exception (int id_, const char *what_arg) | |
![]() | |
static std::string | name (const std::string &ename, int id_) |
template<typename BasicJsonType > | |
static std::string | diagnostics (const BasicJsonType &leaf_element) |
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", "value":"bar"} | A JSON Patch operation 'test' failed. The unsuccessful operation is also printed. |
{The following code shows how an other_error
exception can be caught.,other_error}
|
inlineprivate |
|
inlinestatic |
Definition at line 3003 of file json.hpp.
References nlohmann::detail::exception::diagnostics(), JSON_HEDLEY_NON_NULL, nlohmann::detail::exception::name(), and nlohmann::detail::string.
Referenced by nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::json_value(), and nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::patch().