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).
| 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) |
no test coverage detected