My Project
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 #pragma once 00029 #include "Define.h" 00030 #include <string> 00031 #include <exception> 00032 #include "ExceptionStackWalker.h" 00033 00034 namespace SallyAPI 00035 { 00036 namespace Exception 00037 { 00046 00047 class DLL_API_SALLY CException 00048 : std::exception 00049 { 00050 protected: 00051 CExceptionStackWalker m_ESW; 00052 std::string m_strMessage; 00053 public: 00054 CException(const std::string& message); 00055 virtual ~CException(); 00056 00057 std::string GetCause(); 00058 std::string GetStacktrace(); 00059 }; 00060 } 00061 }