HPX - High Performance ParalleX

PrevUpHomeNext

Header <hpx/exception.hpp>


HPX_THROW_EXCEPTION(errcode, f, msg)
HPX_THROWS_IF(ec, errcode, f, msg)
namespace hpx {
  class error_code;
  class exception;

  struct thread_interrupted;

  // Encode error category for new error_code. 
  enum throwmode { plain =  0, rethrow =  1, lightweight =  0x80 };

  error_code throws;  // Predefined error_code object used as "throw on error" tag. 

  // 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);
  std::string diagnostic_information(hpx::exception const &);
  std::string diagnostic_information(hpx::error_code const &);
  std::string get_error_what(hpx::exception const &);
  std::string get_error_what(hpx::error_code const &);
  boost::uint32_t get_error_locality_id(hpx::exception const &);
  boost::uint32_t get_error_locality_id(hpx::error_code const &);
  error get_error(hpx::exception const &);
  error get_error(hpx::error_code const &);
  std::string get_error_host_name(hpx::exception const &);
  std::string get_error_host_name(hpx::error_code const &);
  boost::int64_t get_error_process_id(hpx::exception const &);
  boost::int64_t get_error_process_id(hpx::error_code const &);
  std::string get_error_env(hpx::exception const &);
  std::string get_error_env(hpx::error_code const &);
  std::string get_error_function_name(hpx::exception const &);
  std::string get_error_function_name(hpx::error_code const &);
  std::string get_error_backtrace(hpx::exception const &);
  std::string get_error_backtrace(hpx::error_code const &);
  std::string get_error_file_name(hpx::exception const &);
  std::string get_error_file_name(hpx::error_code const &);
  int get_error_line_number(hpx::exception const &);
  int get_error_line_number(hpx::error_code const &);
  std::size_t get_error_os_thread(hpx::exception const &);
  std::size_t get_error_os_thread(hpx::error_code const &);
  std::size_t get_error_thread_id(hpx::exception const &);
  std::size_t get_error_thread_id(hpx::error_code const &);
  std::string get_error_thread_description(hpx::exception const &);
  std::string get_error_thread_description(hpx::error_code const &);
  std::string get_error_config(hpx::exception const &);
  std::string get_error_config(hpx::error_code const &);
}

PrevUpHomeNext