YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
platform_ex::Windows::Win32Exception类 参考

Win32 错误引起的宿主异常。 更多...

#include <MinGW32.h>

类 platform_ex::Windows::Win32Exception 继承关系图:
platform_ex::Windows::Win32Exception 的协作图:
using ErrorCode = ::DWORD
 
ErrorCode err
 
 Message
 
 ErrorCode
 
 Win32Exception (ErrorCode, const std::string &="Win32 exception", LevelType={}) ynothrow
 
 DefGetter (const ynothrow, ErrorCode, ErrorCode, err) DefGetter(const ynothrow
 
 FormatMessage (err)) explicit DefCvt(const ynothrow
 
static err std::string FormatMessage (ErrorCode) ynothrow
 格式化错误消息字符串。 更多...
 
using ErrorCode = ::DWORD
 
 Win32Exception (ErrorCode, const std::string &="Win32 exception", LevelType={}) ynothrow
 
 DefGetter (const ynothrow, ErrorCode, ErrorCode, err) DefGetter(const ynothrow
 
 FormatMessage (err)) explicit DefCvt(const ynothrow
 
static err std::string FormatMessage (ErrorCode) ynothrow
 格式化错误消息字符串。 更多...
 

额外继承的成员函数

- Public 类型 继承自 YSLib::LoggedEvent
using LevelType = RecordLevel
 
- Public 成员函数 继承自 platform_ex::Exception
 Exception (const std::string &="unknown host exception", LevelType={}) ynothrow
 
- Public 成员函数 继承自 YSLib::LoggedEvent
 LoggedEvent (const std::string &, LevelType=Emergent) ynothrow
 构造:使用异常字符串和异常等级。 更多...
 
 LoggedEvent (const GeneralEvent &, LevelType=Emergent) ynothrow
 构造:使用一般异常事件对象和异常等级。 更多...
 

详细描述

Win32 错误引起的宿主异常。

自从
build 426

在文件 include/YCLib/MinGW32.h60 行定义.

成员类型定义说明

自从
build 435

在文件 E/include/YCLib/MinGW32.h80 行定义.

构造及析构函数说明

platform_ex::Windows::Win32Exception::Win32Exception ( ErrorCode  ,
const std::string &  = "Win32 exception",
LevelType  = {} 
)
前置条件
错误码不等于 0 。
警告
初始化参数时可能会改变 ::GetLastError() 的结果。

成员函数说明

platform_ex::Windows::Win32Exception::DefGetter ( const ynothrow  ,
ErrorCode  ,
ErrorCode  ,
err   
) const
自从
build 437
platform_ex::Windows::Win32Exception::FormatMessage ( err  ) const
static err std::string platform_ex::Windows::Win32Exception::FormatMessage ( ErrorCode  )
static

格式化错误消息字符串。

返回
若发生异常则结果为空,否则为区域固定为 en-US 的系统消息字符串。

该类的文档由以下文件生成: