Represents an exception whose state is captured at a certain point in code.
- Definition
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
Represents an exception whose state is captured at a certain point in code.
Definition exception_dispatch_info.h:32
- Header
#include <xtd/runtime/exception_services/exception_dispatch_info>
- Namespace
- xtd::runtime
- Library
- xtd.core
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<typename object_t > |
xtd::uptr< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ exception_captured()
bool xtd::runtime::exception_services::exception_dispatch_info::exception_captured |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating whether the exception is caught or not.
- Returns
true
if the exception is captured; otherwise false
.
◆ source_exception()
xtd::ptr< xtd::exception > xtd::runtime::exception_services::exception_dispatch_info::source_exception |
( |
| ) |
const |
|
inlinenoexcept |
Gets the exception that's represented by the current instance.
- Returns
- The exception that's represented by the current instance.
◆ capture()
template<typename exception_t >
static exception_dispatch_info xtd::runtime::exception_services::exception_dispatch_info::capture |
( |
const exception_t & |
source | ) |
|
|
inlinestatic |
Creates an xtd::runtime::exception_services::exception_dispatch_info object that represents the specified exception at the current point in code.
- Parameters
-
source | The exception whose state is captured, and which is represented by the returned object. |
- Returns
- An object that represents the specified exception at the current point in code.
◆ rethrow() [1/2]
void xtd::runtime::exception_services::exception_dispatch_info::rethrow |
( |
| ) |
|
|
inline |
◆ rethrow() [2/2]
template<typename exception_t >
static void xtd::runtime::exception_services::exception_dispatch_info::rethrow |
( |
const exception_t & |
source | ) |
|
|
inlinestatic |
Rehrows the source exception, maintaining the original stack trace information.
◆ operator bool()
xtd::runtime::exception_services::exception_dispatch_info::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
Convert to boolean operator.
- Returns
true
if exception is captured; otherwise false
.
The documentation for this class was generated from the following file: