11 #ifndef __JSONV_DETAIL_NESTED_EXCEPTION_HPP_INCLUDED__ 12 #define __JSONV_DETAIL_NESTED_EXCEPTION_HPP_INCLUDED__ 29 nested_exception() noexcept :
30 _nested(
std::current_exception())
33 nested_exception(
const nested_exception& src) noexcept :
37 nested_exception& operator=(
const nested_exception& src) noexcept
39 _nested = src._nested;
43 virtual ~nested_exception() noexcept = default;
45 __declspec(noreturn)
void rethrow_nested()
const 47 std::rethrow_exception(_nested);
50 std::exception_ptr nested_ptr() const noexcept
56 std::exception_ptr _nested;
61 using nested_exception = std::nested_exception;
Copyright (c) 2014-2019 by Travis Gockel.
#define JSONV_PUBLIC
This function or class is part of the public API for JsonVoorhees.