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

命名空間: concurrency

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();

參數

_消息
錯誤的描述性訊息。

_Hresult
HRESULT造成例外狀況的錯誤值。

另請參閱

concurrency 命名空間