HPX

PrevUpHomeNext

Header <hpx/error_code.hpp>

namespace hpx {
  class error_code;

  // Returns a new error_code constructed from the given parameters. 
  error_code make_error_code(error e, throwmode mode = plain);
  error_code make_error_code(error e, char const * func, char const * file, 
                             long line, throwmode mode = plain);

  // Returns error_code(e, msg, mode). 
  error_code make_error_code(error e, char const * msg, 
                             throwmode mode = plain);
  error_code make_error_code(error e, char const * msg, char const * func, 
                             char const * file, long line, 
                             throwmode mode = plain);

  // Returns error_code(e, msg, mode). 
  error_code make_error_code(error e, std::string const & msg, 
                             throwmode mode = plain);
  error_code make_error_code(error e, std::string const & msg, 
                             char const * func, char const * file, long line, 
                             throwmode mode = plain);
  error_code make_error_code(boost::exception_ptr const & e);

  // Returns generic HPX error category used for new errors. 
  boost::system::error_category const & get_hpx_category();

  // Returns generic HPX error category used for errors re-thrown after the exception has been de-serialized. 
  boost::system::error_category const & get_hpx_rethrow_category();

  // Returns error_code(hpx::success, "success", mode). 
  error_code make_success_code(throwmode mode = plain);
}

PrevUpHomeNext