Captures diagnostics related to a ROOT runtime error.
Definition at line 40 of file RError.hxx.
Classes | |
struct | RLocation |
Public Member Functions | |
RError (const std::string &message, RLocation &&sourceLocation) | |
Used by R__FAIL. | |
void | AddFrame (RLocation &&sourceLocation) |
Used by R__FORWARD_RESULT. | |
void | AppendToMessage (const std::string &info) |
Add more information to the diagnostics. | |
std::string | GetReport () const |
Format a dignostics report, e.g. for an exception message. | |
const std::vector< RLocation > & | GetStackTrace () const |
Private Attributes | |
std::string | fMessage |
User-facing error message. | |
std::vector< RLocation > | fStackTrace |
The location of the error related to fMessage plus upper frames if the error is forwarded through the call stack. | |
#include <ROOT/RError.hxx>
ROOT::Experimental::RError::RError | ( | const std::string & | message, |
RLocation && | sourceLocation | ||
) |
Used by R__FAIL.
Definition at line 35 of file RError.cxx.
void ROOT::Experimental::RError::AddFrame | ( | RLocation && | sourceLocation | ) |
Used by R__FORWARD_RESULT.
Definition at line 45 of file RError.cxx.
|
inline |
Add more information to the diagnostics.
Definition at line 65 of file RError.hxx.
std::string ROOT::Experimental::RError::GetReport | ( | ) | const |
Format a dignostics report, e.g. for an exception message.
Definition at line 25 of file RError.cxx.
|
inline |
Definition at line 68 of file RError.hxx.
|
private |
User-facing error message.
Definition at line 55 of file RError.hxx.
|
private |
The location of the error related to fMessage plus upper frames if the error is forwarded through the call stack.
Definition at line 57 of file RError.hxx.