STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
Concurrency::runtime_exception Class Reference

Exception thrown due to a C++ AMP runtime_exception. This is the base type for all C++ AMP exception types. More...

#include <amprt_exceptions.h>

Inheritance diagram for Concurrency::runtime_exception:
Concurrency::accelerator_view_removed Concurrency::invalid_compute_domain Concurrency::out_of_memory Concurrency::unsupported_feature

Public Member Functions

_AMPIMP runtime_exception (const char *_Message, HRESULT _Hresult) throw ()
 Construct a runtime_exception exception with a message and an error code More...
 
_AMPIMP runtime_exception (HRESULT _Hresult) throw ()
 Construct a runtime_exception exception with an error code More...
 
_AMPIMP runtime_exception (const runtime_exception &_Other) throw ()
 Copy construct a runtime_exception exception More...
 
_AMPIMP runtime_exceptionoperator= (const runtime_exception &_Other) throw ()
 Assignment operator More...
 
virtual _AMPIMP ~runtime_exception () throw ()
 Destruct a runtime_exception exception object instance More...
 
_AMPIMP HRESULT get_error_code () const throw ()
 Get the error code that caused this exception More...
 

Private Attributes

HRESULT _M_error_code
 

Detailed Description

Exception thrown due to a C++ AMP runtime_exception. This is the base type for all C++ AMP exception types.

Constructor & Destructor Documentation

_AMPIMP Concurrency::runtime_exception::runtime_exception ( const char *  _Message,
HRESULT  _Hresult 
)
throw (
)

Construct a runtime_exception exception with a message and an error code

Parameters
_MessageDescriptive message of error
_HresultHRESULT of error that caused this exception
_AMPIMP Concurrency::runtime_exception::runtime_exception ( HRESULT  _Hresult)
throw (
)
explicit

Construct a runtime_exception exception with an error code

Parameters
_HresultHRESULT of error that caused this exception
_AMPIMP Concurrency::runtime_exception::runtime_exception ( const runtime_exception _Other)
throw (
)

Copy construct a runtime_exception exception

Parameters
_OtherThe runtime_exception object to be copied from
virtual _AMPIMP Concurrency::runtime_exception::~runtime_exception ( )
throw (
)
virtual

Destruct a runtime_exception exception object instance

Member Function Documentation

_AMPIMP HRESULT Concurrency::runtime_exception::get_error_code ( ) const
throw (
)

Get the error code that caused this exception

Returns
HRESULT of error that caused the exception
_AMPIMP runtime_exception& Concurrency::runtime_exception::operator= ( const runtime_exception _Other)
throw (
)

Assignment operator

Parameters
_OtherThe runtime_exception object to be assigned from

Member Data Documentation

HRESULT Concurrency::runtime_exception::_M_error_code
private

The documentation for this class was generated from the following file: