MCPcopy Create free account
hub / github.com/TheHPXProject/hpx / get_error_code

Method get_error_code

libs/core/errors/src/exception.cpp:137–141  ·  view source on GitHub ↗

The function \a get_error_code() returns a hpx::error_code which represents the same error condition as this hpx::exception instance. \param mode The parameter \p mode specifies whether the returned hpx::error_code belongs to the error category \a hpx_category (if mode is \a throwmode::plain, this is the default) or to the category \a hpx_category_rethrow (if mode is \a throwmode::rethrow).

Source from the content-addressed store, hash-verified

135 /// the default) or to the category \a hpx_category_rethrow
136 /// (if mode is \a throwmode::rethrow).
137 error_code exception::get_error_code(throwmode mode) const noexcept
138 {
139 (void) mode;
140 return {this->std::system_error::code().value(), *this};
141 }
142
143 bad_alloc_exception::bad_alloc_exception()
144 : hpx::exception(hpx::error::out_of_memory)

Callers 3

load_componentsMethod · 0.45
load_pluginsMethod · 0.45

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected