WPILibC++
2018.4.1-20180729123227-1139-ga11fcb6
|
exception indicating other library errors More...
#include <json.h>
Static Public Member Functions | |
static other_error | create (int id_, const Twine &what_arg) |
Additional Inherited Members | |
![]() | |
const char * | what () const noexceptoverride |
returns the explanatory string | |
![]() | |
const int | id |
the id of the exception | |
![]() | |
exception (int id_, const Twine &what_arg) | |
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}