WPILibC++
2018.4.1-20180924001740-1197-g467c9fd
|
general exception of the json class More...
#include <json.h>
Public Member Functions | |
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 Twine &what_arg) | |
general exception of the json class
This class is an extension of std::exception
objects with a member id for exception ids. It is used as the base class for all exceptions thrown by the json class. This class can hence be used as "wildcard" to catch exceptions.
Subclasses:
{The following code shows how arbitrary library exceptions can be caught.,exception}