WPILibC++  unspecified
wpi::detail::other_error Class Reference

exception indicating other errors More...

#include <json.h>

Inheritance diagram for wpi::detail::other_error:
Collaboration diagram for wpi::detail::other_error:

Static Public Member Functions

static other_error create (int id, const std::string &what_arg)
 

Additional Inherited Members

- Public Member Functions inherited from wpi::detail::exception
virtual const char * what () const noexceptoverride
 returns the explanatory string
 
- Public Attributes inherited from wpi::detail::exception
const int id
 the id of the exception
 
- Protected Member Functions inherited from wpi::detail::exception
 exception (int id_, const char *what_arg)
 
- Static Protected Member Functions inherited from wpi::detail::exception
static std::string name (const std::string &ename, int id)
 

Detailed Description

exception indicating other errors

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.
json.exception.other_error.502 invalid object size for conversion Some conversions to user-defined types impose constraints on the object size (e.g. std::pair)
Since
version 3.0.0

The documentation for this class was generated from the following files: