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

#include <json_exception.hpp>

Inheritance diagram for fly::OutOfRangeJsonException:
Collaboration diagram for fly::OutOfRangeJsonException:

Public Member Functions

 OutOfRangeJsonException (const Json &json, std::ptrdiff_t offset) noexcept
 
std::ptrdiff_t offset () const
 
- Public Member Functions inherited from fly::JsonException
 JsonException (std::string &&message) noexcept
 
 JsonException (const Json &json, std::string &&message) noexcept
 
virtual const char * what () const noexcept override
 

Additional Inherited Members

- Protected Member Functions inherited from fly::JsonException
 JsonException (const char *class_name, std::string &&message) noexcept
 

Detailed Description

Exception to be raised trying to create an iterator that escapes the range [begin, end] of a Json instance.

Constructor & Destructor Documentation

◆ OutOfRangeJsonException()

fly::OutOfRangeJsonException::OutOfRangeJsonException ( const Json json,
std::ptrdiff_t  offset 
)
noexcept

Constructor.

Parameters
jsonThe Json instance for which the error was encountered.
offsetThe iterator offset attempted to be accessed.

Member Function Documentation

◆ offset()

std::ptrdiff_t fly::OutOfRangeJsonException::offset ( ) const
Returns
The iterator offset attempted to be accessed.

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