次の方法で共有


runtime_exception クラス

C++ Accelerated Massive Parallelism (AMP) ライブラリ内の例外の基本型。

構文

class runtime_exception : public std::exception;

メンバー

パブリック コンストラクター

名前 説明
runtime_exception コンストラクター runtime_exception クラスの新しいインスタンスを初期化します。
~runtime_exception デストラクター runtime_exception オブジェクトを破棄します。

パブリック メソッド

名前 説明
get_error_code この例外の原因となったエラー コードを返します。

パブリック演算子

名前 説明
operator= 指定された runtime_exception オブジェクトの内容をこのオブジェクトにコピーします。

継承階層

exception

runtime_exception

必要条件

ヘッダー: amprt.h

名前空間: Concurrency

runtime_exception コンストラクター

クラスの新しいインスタンスを初期化します。

構文

runtime_exception(
    const char * _Message,
    HRESULT _Hresult ) throw();

explicit runtime_exception(
    HRESULT _Hresult ) throw();

runtime_exception(
    const runtime_exception & _Other ) throw();

パラメーター

_Message
この例外の原因になったエラーの説明。

_Hresult
この例外の原因になったエラーの HRESULT。

_Other
コピーする runtime_exception オブジェクトです。

戻り値

runtime_exception オブジェクトです。

~runtime_exception デストラクター

オブジェクトを破棄します。

構文

virtual ~runtime_exception() throw();

get_error_code

この例外の原因となったエラー コードを返します。

構文

HRESULT get_error_code() const throw();

戻り値

この例外の原因になったエラーの HRESULT。

operator=

指定された runtime_exception オブジェクトの内容をこのオブジェクトにコピーします。

構文

runtime_exception & operator= (    const runtime_exception & _Other ) throw();

パラメーター

_Other
コピーする runtime_exception オブジェクトです。

戻り値

この runtime_exception オブジェクトへの参照。

関連項目

コンカレンシー名前空間 (C++ AMP)