|
Renderd7-nightly
v0.7.0
|
exception indicating other library errors More...
#include <json.hpp>
Inheritance diagram for nlohmann::detail::other_error:Additional Inherited Members | |
Public Member Functions inherited from nlohmann::detail::exception | |
| const JSON_HEDLEY_RETURNS_NON_NULL char * | what () const noexcept override |
| returns the explanatory string | |
Public Attributes inherited from nlohmann::detail::exception | |
| const int | id |
| the id of the exception | |
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. |
@liveexample{The following code shows how an other_error exception can be caught.,other_error}