43 public std::runtime_error
49 const std::type_info& type,
51 std::exception_ptr cause =
nullptr
56 const std::type_index& type,
58 std::exception_ptr cause =
nullptr
71 std::type_index type_index() const noexcept;
75 std::string_view type_name() const noexcept;
79 const
std::
string& message() const noexcept;
84 const
std::exception_ptr& nested_ptr() const noexcept;
88 const
std::type_index& type,
89 std::
string type_name,
91 std::exception_ptr cause
96 std::type_index _type_index;
97 std::
string _type_name;
99 std::exception_ptr _cause;
Represents an exact path in some JSON structure.
Exception thrown if there is any problem running serialize or to_json.
serialization_error(jsonv::path path, const std::type_index &type, std::string message, std::exception_ptr cause=nullptr)
As above, naming the type by its std::type_index.
serialization_error(jsonv::path path, const std::type_info &type, std::string message, std::exception_ptr cause=nullptr)
Create a new exception for a failure at path while serializing type, described by message and,...
Copyright (c) 2014-2020 by Travis Gockel.
Copyright (c) 2012-2020 by Travis Gockel.
#define JSONV_NODISCARD
Warn if the caller discards the result of this function.
#define JSONV_PUBLIC
This function or class is part of the public API for JSON Voorhees.