WPILibC++ 2023.4.3
|
general exception of the json class More...
#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/json/include/wpi/json.h>
Public Member Functions | |
const char * | what () const noexcept override |
returns the explanatory string More... | |
Public Attributes | |
const int | id |
the id of the exception More... | |
Protected Member Functions | |
exception (int id_, std::string_view 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:
@liveexample{The following code shows how arbitrary library exceptions can be caught.,exception}
|
protected |
|
inlineoverridenoexcept |
returns the explanatory string
const int wpi::detail::exception::id |
the id of the exception