libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Member Functions | Public Attributes | List of all members
donut::json::Error Struct Reference

Exception type for errors originating from the JSON API. More...

#include <donut/json.hpp>

Inheritance diagram for donut::json::Error:

Public Member Functions

 Error (const std::string &message, const SourceLocation &source)
 
 Error (const char *message, const SourceLocation &source)
 

Public Attributes

SourceLocation source
 Location in the JSON source string that the error originated from, or (0, 0) if the error did not originate from a specific location. More...
 

Detailed Description

Exception type for errors originating from the JSON API.

Examples
example_game.cpp.

Constructor & Destructor Documentation

◆ Error() [1/2]

donut::json::Error::Error ( const std::string &  message,
const SourceLocation source 
)
inline

◆ Error() [2/2]

donut::json::Error::Error ( const char *  message,
const SourceLocation source 
)
inline

Member Data Documentation

◆ source

SourceLocation donut::json::Error::source

Location in the JSON source string that the error originated from, or (0, 0) if the error did not originate from a specific location.


The documentation for this struct was generated from the following file: