Logo ROOT  
Reference Guide
RError.hxx File Reference
#include <ROOT/RConfig.hxx>
#include <ROOT/RLogger.hxx>
#include <cstddef>
#include <memory>
#include <new>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for RError.hxx:
This graph shows which files directly or indirectly include this file:

Classes

class  ROOT::Experimental::RError
 Captures diagnostics related to a ROOT runtime error. More...
 
class  ROOT::Experimental::RException
 Base class for all ROOT issued exceptions. More...
 
struct  ROOT::Experimental::RError::RLocation
 
class  ROOT::Experimental::RResult< T >
 The class is used as a return type for operations that can fail; wraps a value of type T or an RError. More...
 
class  ROOT::Experimental::RResult< void >
 RResult<void> has no data member and no Inspect() method but instead a Success() factory method. More...
 
class  ROOT::Experimental::Internal::RResultBase
 Common handling of the error case for RResult<T> (T != void) and RResult<void> More...
 

Namespaces

namespace  ROOT
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 
namespace  ROOT::Experimental
 
namespace  ROOT::Experimental::Internal
 

Macros

#define R__FAIL(msg)   ROOT::Experimental::RError(msg, {R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__})
 Short-hand to return an RResult<T> in an error state; the RError is implicitly converted into RResult<T> More...
 
#define R__FORWARD_ERROR(res)   res.ForwardError(std::move(res), {R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__})
 Short-hand to return an RResult<T> in an error state (i.e. after checking) More...
 
#define R__FORWARD_RESULT(res)   std::move(res.Forward({R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__}))
 Short-hand to return an RResult<T> value from a subroutine to the calling stack frame. More...
 

Detailed Description

Author
Jakob Blomer jblom.nosp@m.er@c.nosp@m.ern.c.nosp@m.h
Date
2019-12-11
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition in file RError.hxx.

Macro Definition Documentation

◆ R__FAIL

#define R__FAIL (   msg)    ROOT::Experimental::RError(msg, {R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__})

Short-hand to return an RResult<T> in an error state; the RError is implicitly converted into RResult<T>

Definition at line 291 of file RError.hxx.

◆ R__FORWARD_ERROR

#define R__FORWARD_ERROR (   res)    res.ForwardError(std::move(res), {R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__})

Short-hand to return an RResult<T> in an error state (i.e. after checking)

Definition at line 295 of file RError.hxx.

◆ R__FORWARD_RESULT

#define R__FORWARD_RESULT (   res)    std::move(res.Forward({R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__}))

Short-hand to return an RResult<T> value from a subroutine to the calling stack frame.

Definition at line 293 of file RError.hxx.