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

This class describes an exception thrown because of a failure to acquire a critical resource in the Concurrency Runtime. More...

#include <concrt.h>

Inheritance diagram for Concurrency::scheduler_resource_allocation_error:
Concurrency::scheduler_worker_creation_error

Public Member Functions

_CONCRTIMP scheduler_resource_allocation_error (_In_z_ const char *_Message, HRESULT _Hresult) throw ()
 Constructs a scheduler_resource_allocation_error object. More...
 
_CONCRTIMP scheduler_resource_allocation_error (HRESULT _Hresult) throw ()
 Constructs a scheduler_resource_allocation_error object. More...
 
_CONCRTIMP HRESULT get_error_code () const throw ()
 Returns the error code that caused the exception. More...
 

Private Attributes

HRESULT _Hresult
 

Detailed Description

This class describes an exception thrown because of a failure to acquire a critical resource in the Concurrency Runtime.

This exception is typically thrown when a call to the operating system from within the Concurrency Runtime fails. The error code which would normally be returned from a call to the Win32 method GetLastError is converted to a value of type HRESULT and can be retrieved using the get_error_code method.

Constructor & Destructor Documentation

_CONCRTIMP Concurrency::scheduler_resource_allocation_error::scheduler_resource_allocation_error ( _In_z_ const char _Message,
HRESULT  _Hresult 
)
throw (
)

Constructs a scheduler_resource_allocation_error object.

Parameters
_MessageA descriptive message of the error.
_HresultThe HRESULT value of the error that caused the exception.
_CONCRTIMP Concurrency::scheduler_resource_allocation_error::scheduler_resource_allocation_error ( HRESULT  _Hresult)
throw (
)
explicit

Constructs a scheduler_resource_allocation_error object.

Parameters
_HresultThe HRESULT value of the error that caused the exception.

Member Function Documentation

_CONCRTIMP HRESULT Concurrency::scheduler_resource_allocation_error::get_error_code ( ) const
throw (
)

Returns the error code that caused the exception.

Returns
The HRESULT value of the error that caused the exception.

Member Data Documentation

HRESULT Concurrency::scheduler_resource_allocation_error::_Hresult
private

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