35 exception_dispatch_info() =
default;
36 exception_dispatch_info(exception_dispatch_info&&) =
default;
37 exception_dispatch_info(
const exception_dispatch_info&) =
default;
38 exception_dispatch_info& operator =(exception_dispatch_info&&) =
default;
39 exception_dispatch_info& operator =(
const exception_dispatch_info&) =
default;
63 template<
class exception_t>
64 static exception_dispatch_info
capture(
const exception_t& source) {
65 static_assert(std::is_base_of<xtd::exception, exception_t>::value);
66 return exception_dispatch_info {source};
64 static exception_dispatch_info
capture(
const exception_t& source) {
…}
72 template<
class exception_t>
73 static void rethrow(
const exception_t& source) {exception_dispatch_info {source}.rethrow();}
85 template<
class exception_t>
89 std::exception_ptr exception_ptr_;
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
xtd::unique_ptr_object< object_t > memberwise_clone() const
Creates a shallow copy of the current object.
Represents an exception whose state is captured at a certain point in code.
Definition exception_dispatch_info.hpp:32
static exception_dispatch_info capture(const exception_t &source)
Creates an xtd::runtime::exception_services::exception_dispatch_info object that represents the speci...
Definition exception_dispatch_info.hpp:64
static void rethrow(const exception_t &source)
Rehrows the source exception, maintaining the original stack trace information.
Definition exception_dispatch_info.hpp:73
bool exception_captured() const noexcept
Gets a value indicating whether the exception is caught or not.
Definition exception_dispatch_info.hpp:47
xtd::ptr< xtd::exception > source_exception() const noexcept
Gets the exception that's represented by the current instance.
Definition exception_dispatch_info.hpp:52
void rethrow()
Rethrows the exception that's represented by the current xtd::runtime::exception_services::exception_...
Definition exception_dispatch_info.hpp:70
Contains xtd::exception exception.
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.hpp:27
@ release
Build type release.
Definition build_type.hpp:24
Provides classes for advanced exception handling.
Definition exception_dispatch_info.hpp:15
Contains advanced types that support diverse namespaces such as the xtd, runtime, and the security na...
Definition exception_dispatch_info.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8