libfly  6.2.2
C++20 utility library for Linux, macOS, and Windows
fly::JsonException Class Reference

#include <json_exception.hpp>

Inheritance diagram for fly::JsonException:
Collaboration diagram for fly::JsonException:

Public Member Functions

 JsonException (std::string &&message) noexcept
 
 JsonException (const Json &json, std::string &&message) noexcept
 
virtual const char * what () const noexcept override
 

Protected Member Functions

 JsonException (const char *class_name, std::string &&message) noexcept
 

Detailed Description

Generic exception to be raised if an error was encountered creating, accessing, or modifying a Json instance.

Author
Timothy Flynn (trfly.nosp@m.nn89.nosp@m.@pm.m.nosp@m.e)
Version
September 24, 2017

Constructor & Destructor Documentation

◆ JsonException() [1/3]

fly::JsonException::JsonException ( std::string &&  message)
explicitnoexcept

Constructor.

Parameters
messageMessage indicating what error was encountered.

◆ JsonException() [2/3]

fly::JsonException::JsonException ( const Json json,
std::string &&  message 
)
noexcept

Constructor.

Parameters
jsonThe Json instance for which the error was encountered.
messageMessage indicating what error was encountered.

◆ JsonException() [3/3]

fly::JsonException::JsonException ( const char *  class_name,
std::string &&  message 
)
protectednoexcept

Constructor for subclasses.

Parameters
class_nameName of the subclass.
messageMessage indicating what error was encountered.

Member Function Documentation

◆ what()

const char * fly::JsonException::what ( ) const
overridevirtualnoexcept
Returns
C-string representing this exception.

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