HPX_THROWS_IF#
Defined in header hpx/exception.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
HPX_THROWS_IF(ec, errcode, f, ...)
Either throw a hpx::exception or initialize hpx::error_code from the given parameters.
The macro HPX_THROWS_IF can be used to either throw a hpx::exception or to initialize a hpx::error_code from the given parameters. If &ec == &hpx::throws, the semantics of this macro are equivalent to HPX_THROW_EXCEPTION. If &ec != &hpx::throws, the hpx::error_code instance
ecis initialized instead.The parameter
errcodeholds the hpx::error code from which the new exception should be initialized. The parameterfis expected to hold the name of the function exception is thrown from and the parametermsgholds the error message the new exception should encapsulate.