8#ifndef ROOFIT_ROOFITCORE_INC_VALUECHECKING_H_
9#define ROOFIT_ROOFITCORE_INC_VALUECHECKING_H_
34 const char*
what() const noexcept
override {
35 std::stringstream out;
36 out <<
"**Computation/caching error** in\n";
40 std::string message = *it;
41 auto pos = message.find(
'\n', 0);
42 while (pos != std::string::npos) {
43 message.insert(pos+1,
indent);
44 pos = (message.find(
'\n', pos+1));
47 out <<
indent << message <<
"\n";
53 std::string* ret =
new std::string(out.str());
67 typename std::enable_if<std::is_base_of<RooAbsArg, T>::value>
::type* =
nullptr >
69 _stream << arg.ClassName() <<
"::" << arg.GetName() <<
" " << &arg <<
" ";
75 typename std::enable_if< ! std::is_base_of<RooAbsArg, T>::value>
::type* =
nullptr >
81 operator std::string()
const {
static void indent(ostringstream &buf, int indent_level)
const char * what() const noexcept override
CachingError(CachingError &&previous, const std::string &newMessage)
CachingError(const std::string &newMessage)
std::vector< std::string > _messages