载入中...
搜索中...
未找到
Exception.h
浏览该文件的文档.
1#pragma once
2
3
4#include "common/Export.h"
5
6#include <exception>
7#include <string>
8
9namespace eve {
10
11
13class EVENGINE_API_FOUNDATION Exception : public std::exception {
14public:
16 Exception(const char *fmt, ...);
18 virtual ~Exception() throw();
19
24 inline virtual const char *what() const throw()
25 {
26 return message.c_str();
27 }
28
29private:
30 std::string message;
31};
32} // namespace eve
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
std::string message
EVENGINE_API_FOUNDATION public API.
Definition Exception.h:13
virtual const char * what() const
Returns a string containing reason for the exception.
Definition Exception.h:24
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16