Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::RError Class Reference

Captures diagnostics related to a ROOT runtime error.

Definition at line 39 of file RError.hxx.

Classes

struct  RLocation
 

Public Member Functions

 RError (std::string_view message, RLocation &&sourceLocation)
 Used by R__FAIL.
 
void AddFrame (RLocation &&sourceLocation)
 Used by R__FORWARD_RESULT.
 
void AppendToMessage (std::string_view 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< RLocationfStackTrace
 The location of the error related to fMessage plus upper frames if the error is forwarded through the call stack.
 

#include <ROOT/RError.hxx>

Constructor & Destructor Documentation

◆ RError()

ROOT::RError::RError ( std::string_view  message,
RLocation &&  sourceLocation 
)

Used by R__FAIL.

Definition at line 32 of file RError.cxx.

Member Function Documentation

◆ AddFrame()

void ROOT::RError::AddFrame ( RLocation &&  sourceLocation)

Used by R__FORWARD_RESULT.

Definition at line 40 of file RError.cxx.

◆ AppendToMessage()

void ROOT::RError::AppendToMessage ( std::string_view  info)
inline

Add more information to the diagnostics.

Definition at line 66 of file RError.hxx.

◆ GetReport()

std::string ROOT::RError::GetReport ( ) const

Format a dignostics report, e.g. for an exception message.

Definition at line 22 of file RError.cxx.

◆ GetStackTrace()

const std::vector< RLocation > & ROOT::RError::GetStackTrace ( ) const
inline

Definition at line 69 of file RError.hxx.

Member Data Documentation

◆ fMessage

std::string ROOT::RError::fMessage
private

User-facing error message.

Definition at line 56 of file RError.hxx.

◆ fStackTrace

std::vector<RLocation> ROOT::RError::fStackTrace
private

The location of the error related to fMessage plus upper frames if the error is forwarded through the call stack.

Definition at line 58 of file RError.hxx.

Libraries for ROOT::RError:

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