| description | Learn more about: runtime_exception Class | ||||
|---|---|---|---|---|---|
| title | runtime_exception Class | ||||
| ms.date | 03/27/2019 | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 8fe3ce2c-3d4c-4b9c-95e8-e592f37adefd |
The base type for exceptions in the C++ Accelerated Massive Parallelism (AMP) library.
class runtime_exception : public std::exception;| Name | Description |
|---|---|
| runtime_exception Constructor | Initializes a new instance of the runtime_exception class. |
| ~runtime_exception Destructor | Destroys the runtime_exception object. |
| Name | Description |
|---|---|
| get_error_code | Returns the error code that caused the exception. |
| Name | Description |
|---|---|
| operator= | Copies the contents of the specified runtime_exception object into this one. |
exception
runtime_exception
Header: amprt.h
Namespace: Concurrency
Initializes a new instance of the class.
runtime_exception(
const char * _Message,
HRESULT _Hresult ) throw();
explicit runtime_exception(
HRESULT _Hresult ) throw();
runtime_exception(
const runtime_exception & _Other ) throw();_Message
A description of the error that caused the exception.
_Hresult
The HRESULT of error that caused the exception.
_Other
The runtime_exception object to copy.
The runtime_exception object.
Destroys the object.
virtual ~runtime_exception() throw();Returns the error code that caused the exception.
HRESULT get_error_code() const throw();The HRESULT of error that caused the exception.
Copies the contents of the specified runtime_exception object into this one.
runtime_exception & operator= ( const runtime_exception & _Other ) throw();_Other
The runtime_exception object to copy.
A reference to this runtime_exception object.