SimGrid  3.21
Versatile Simulation of Distributed Systems
simgrid::xbt::ThrowPoint Class Reference

Detailed Description

Contextual information about an execution location (file:line:func and backtrace, procname, pid)

Constitute the contextual information of where an exception was thrown

These tuples (FILE, LINE, func, backtrace, procname, pid) are best created with XBT_THROW_POINT.

#include <Exception.hpp>

Public Member Functions

 ThrowPoint ()=default
 
 ThrowPoint (const char *file, int line, const char *function, Backtrace bt, std::string actor_name, int pid)
 

Public Attributes

const char * file_ = nullptr
 
int line_ = 0
 
const char * function_ = nullptr
 
Backtrace backtrace_
 
std::string procname_ = ""
 Name of the process who thrown this. More...
 
int pid_ = 0
 PID of the process who thrown this. More...
 

Constructor & Destructor Documentation

◆ ThrowPoint() [1/2]

simgrid::xbt::ThrowPoint::ThrowPoint ( )
default

◆ ThrowPoint() [2/2]

simgrid::xbt::ThrowPoint::ThrowPoint ( const char *  file,
int  line,
const char *  function,
Backtrace  bt,
std::string  actor_name,
int  pid 
)
inlineexplicit

Member Data Documentation

◆ file_

const char* simgrid::xbt::ThrowPoint::file_ = nullptr

◆ line_

int simgrid::xbt::ThrowPoint::line_ = 0

◆ function_

const char* simgrid::xbt::ThrowPoint::function_ = nullptr

◆ backtrace_

Backtrace simgrid::xbt::ThrowPoint::backtrace_

◆ procname_

std::string simgrid::xbt::ThrowPoint::procname_ = ""

Name of the process who thrown this.

◆ pid_

int simgrid::xbt::ThrowPoint::pid_ = 0

PID of the process who thrown this.


The documentation for this class was generated from the following file: