AnimatLab  2
Test
StdErrorInfo.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace StdUtils
10 {
19 class STD_UTILS_PORT CStdErrorInfo : public std::exception
20 {
21 public:
23  long m_lError;
24 
26  std::string m_strError;
27 
30 
32  std::string m_strSourceFile;
33 
35  CStdArray<std::string> m_aryCallChain;
36 
37  CStdErrorInfo();
38  CStdErrorInfo(long lError, std::string strError, std::string strSourceFile, long lSourceLine);
39  ~CStdErrorInfo() throw();
40 
41  virtual std::string Log();
42 
51  virtual const char* what() const throw() {return m_strError.c_str();};
52 
61  virtual std::string StackTrace();
62 
63 };
64 
65 } //StdUtils
66 
67 
std::string m_strSourceFile
The source file name where the error occurred.
Definition: StdErrorInfo.h:32
std::string m_strError
The error message.
Definition: StdErrorInfo.h:26
Information about the standard error.
Definition: StdErrorInfo.h:19
long m_lError
The error number.
Definition: StdErrorInfo.h:23
CStdArray< std::string > m_aryCallChain
The call chain of the errorr.
Definition: StdErrorInfo.h:35
long m_lSourceLine
The source line code line where the error occurred.
Definition: StdErrorInfo.h:29
Namespace for the standard utility objects.
Definition: MarkupSTL.cpp:19