Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Error.h File Reference
#include "TError.h"
#include "Math/Util.h"
Include dependency graph for Error.h:
This graph shows which files directly or indirectly include this file:

Macros

#define MATH_ERROR_MSG(loc, str)
 
#define MATH_ERROR_MSGVAL(loc, txt, x)
 
#define MATH_ERROR_VAL(loc, x)
 
#define MATH_INFO_MSG(loc, str)
 Pre-processor macro to report messages which can be configured to use ROOT error or simply an std::iostream in case of stan-alone builds.
 
#define MATH_INFO_MSGVAL(loc, txt, x)
 
#define MATH_INFO_VAL(loc, x)
 
#define MATH_WARN_MSG(loc, str)
 
#define MATH_WARN_MSGVAL(loc, txt, x)
 
#define MATH_WARN_VAL(loc, x)
 

Macro Definition Documentation

◆ MATH_ERROR_MSG

#define MATH_ERROR_MSG (   loc,
  str 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
::Error(sl.c_str(),"%s",str);}

Definition at line 83 of file Error.h.

◆ MATH_ERROR_MSGVAL

#define MATH_ERROR_MSGVAL (   loc,
  txt,
  x 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
std::string str = std::string(txt) + std::string("; ") + std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
::Error(sl.c_str(),"%s",str.c_str() );}
Double_t x[n]
Definition legend1.C:17
std::string ToString(const T &val)
Utility function for conversion to strings.
Definition Util.h:50

Definition at line 109 of file Error.h.

◆ MATH_ERROR_VAL

#define MATH_ERROR_VAL (   loc,
  x 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
std::string str = std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
::Error(sl.c_str(),"%s",str.c_str() );}

Definition at line 95 of file Error.h.

◆ MATH_INFO_MSG

#define MATH_INFO_MSG (   loc,
  str 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
::Info(sl.c_str(),"%s",str);}

Pre-processor macro to report messages which can be configured to use ROOT error or simply an std::iostream in case of stan-alone builds.

Definition at line 77 of file Error.h.

◆ MATH_INFO_MSGVAL

#define MATH_INFO_MSGVAL (   loc,
  txt,
  x 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
std::string str = std::string(txt) + std::string("; ") + std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
::Info(sl.c_str(),"%s",str.c_str() );}

Definition at line 101 of file Error.h.

◆ MATH_INFO_VAL

#define MATH_INFO_VAL (   loc,
  x 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
std::string str = std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
::Info(sl.c_str(),"%s",str.c_str() );}

Definition at line 87 of file Error.h.

◆ MATH_WARN_MSG

#define MATH_WARN_MSG (   loc,
  str 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
::Warning(sl.c_str(),"%s",str);}

Definition at line 80 of file Error.h.

◆ MATH_WARN_MSGVAL

#define MATH_WARN_MSGVAL (   loc,
  txt,
  x 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
std::string str = std::string(txt) + std::string("; ") + std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
::Warning(sl.c_str(),"%s",str.c_str() );}

Definition at line 105 of file Error.h.

◆ MATH_WARN_VAL

#define MATH_WARN_VAL (   loc,
  x 
)
Value:
{std::string sl = "ROOT::Math::" + std::string(loc); \
std::string str = std::string(#x) + std::string(" = ") + ::ROOT::Math::Util::ToString(x); \
::Warning(sl.c_str(),"%s",str.c_str() );}

Definition at line 91 of file Error.h.