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