knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
KnowRobError.h File Reference
#include <fmt/core.h>
#include <optional>
Include dependency graph for KnowRobError.h:

Go to the source code of this file.

Classes

class  knowrob::KnowRobError
 

Namespaces

 knowrob
 

Macros

#define LOG_KNOWROB_ERROR(err, msg, ...)
 

Macro Definition Documentation

◆ LOG_KNOWROB_ERROR

#define LOG_KNOWROB_ERROR (   err,
  msg,
  ... 
)
Value:
if(err.hasFile()) { \
KB_ERROR("{}. Origin of error is:", fmt::format(msg, ##__VA_ARGS__)); \
KB_ERROR1(err.file()->c_str(), err.line(), err.what()); \
} else { \
KB_ERROR("{}. {}", fmt::format(msg, ##__VA_ARGS__), err.what()); \
}

Definition at line 79 of file KnowRobError.h.