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

general exception of the json class More...

#include <json.h>

Inheritance diagram for wpi::detail::exception:
Collaboration diagram for wpi::detail::exception:

Public Member Functions

virtual const char * what () const noexceptoverride
 returns the explanatory string
 

Public Attributes

const int id
 the id of the exception
 

Protected Member Functions

 exception (int id_, const char *what_arg)
 

Static Protected Member Functions

static std::string name (const std::string &ename, int id)
 

Detailed Description

general exception of the json class

Extension of std::exception objects with a member id for exception ids.

Note
To have nothrow-copy-constructible exceptions, we internally use std::runtime_error which can cope with arbitrary-length error messages. Intermediate strings are built with static functions and then passed to the actual constructor.
Since
version 3.0.0

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