15 #include "llvm/StringRef.h"
40 void Clone(
const Error& error);
42 std::string GetMessage()
const;
43 std::string GetFilename()
const;
44 std::string GetFunction()
const;
45 int GetLineNumber()
const;
46 const ErrorBase* GetOriginatingObject()
const;
47 double GetTimestamp()
const;
49 void Set(Code code, llvm::StringRef contextMessage, llvm::StringRef filename,
50 llvm::StringRef
function,
int lineNumber,
57 std::string m_message;
58 std::string m_filename;
59 std::string m_function;
61 const ErrorBase* m_originatingObject =
nullptr;
62 double m_timestamp = 0.0;
Base class for most objects.
Definition: ErrorBase.h:72
Error object represents a library error.
Definition: Error.h:31