scheduler_resource_allocation_error 类
此类描述因未能在并发运行时中获取关键资源而引发的异常。
语法
class scheduler_resource_allocation_error : public std::exception;
成员
公共构造函数
名称 | 描述 |
---|---|
scheduler_resource_allocation_error | 已重载。 构造 scheduler_resource_allocation_error 对象。 |
公共方法
名称 | 描述 |
---|---|
get_error_code | 返回导致异常的错误代码。 |
备注
该异常通常是在并发运行时内调用操作系统失败时引发的。 通常从调用 Win32 方法 GetLastError
返回的错误代码将转换为类型 HRESULT
的值,并且可以使用 get_error_code
方法检索。
继承层次结构
exception
scheduler_resource_allocation_error
要求
标头:concrt.h
命名空间: 并发
get_error_code
返回导致异常的错误代码。
HRESULT get_error_code() const throw();
返回值
导致异常的错误的 HRESULT
值。
scheduler_resource_allocation_error
构造 scheduler_resource_allocation_error
对象。
scheduler_resource_allocation_error(
_In_z_ const char* _Message,
HRESULT _Hresult) throw();
explicit _CRTIMP scheduler_resource_allocation_error(
HRESULT _Hresult) throw();
参数
_Message
错误的描述性消息。
_Hresult
导致异常的错误的 HRESULT
值。