14 #include <llvm/StringRef.h> 15 #include <llvm/Twine.h> 41 void Clone(
const Error& error);
43 std::string GetMessage()
const;
44 std::string GetFilename()
const;
45 std::string GetFunction()
const;
46 int GetLineNumber()
const;
47 const ErrorBase* GetOriginatingObject()
const;
48 double GetTimestamp()
const;
50 void Set(Code code,
const llvm::Twine& contextMessage,
58 std::string m_message;
59 std::string m_filename;
60 std::string m_function;
62 const ErrorBase* m_originatingObject =
nullptr;
63 double m_timestamp = 0.0;
Definition: RobotController.cpp:14
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
Base class for most objects.
Definition: ErrorBase.h:74
Error object represents a library error.
Definition: Error.h:32
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42