载入中...
搜索中...
未找到
Exception.h
浏览该文件的文档.
1#pragma once
2
3
4#include "common/Export.h"
5
6#include <exception>
7#include <string>
8
9namespace eve
10{
11
12
13class EVENGINE_API Exception : public std::exception
14{
15public:
16 Exception(const char *fmt, ...);
17 virtual ~Exception() throw();
18
23 inline virtual const char *what() const throw()
24 {
25 return message.c_str();
26 }
27
28private:
29 std::string message;
30};
31
32
33}
#define EVENGINE_API
宿主(eve / libmain)导出宏;插件从进程导入同一批符号。
Definition Export.h:16
virtual const char * what() const
Returns a string containing reason for the exception.
Definition Exception.h:23
Definition Build.cpp:11