Logo ROOT  
Reference Guide
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. More...
 
#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);}
void Error(const char *location, const char *msgfmt,...)

Definition at line 82 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 108 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 94 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);}
void Info(const char *location, const char *msgfmt,...)

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 76 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 100 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 86 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);}
void Warning(const char *location, const char *msgfmt,...)

Definition at line 79 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 104 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 90 of file Error.h.