11 #include "ChipObject/NiRio.h"
24 typedef tRioStatusCode Code;
28 void Clone(
Error &error);
30 const char *GetMessage()
const;
31 const char *GetFilename()
const;
32 const char *GetFunction()
const;
33 uint32_t GetLineNumber()
const;
34 const ErrorBase* GetOriginatingObject()
const;
35 double GetTime()
const;
37 void Set(Code code,
const char* contextMessage,
const char* filename,
38 const char *
function, uint32_t lineNumber,
const ErrorBase* originatingObject);
39 static void EnableStackTrace(
bool enable) { m_stackTraceEnabled=enable; }
40 static void EnableSuspendOnError(
bool enable) { m_suspendOnErrorEnabled=enable; }
46 std::string m_message;
47 std::string m_filename;
48 std::string m_function;
49 uint32_t m_lineNumber;
53 static bool m_stackTraceEnabled;
54 static bool m_suspendOnErrorEnabled;
55 DISALLOW_COPY_AND_ASSIGN(
Error);
Definition: ErrorBase.h:37