| description | Learn more about: scheduler_resource_allocation_error Class | ||||
|---|---|---|---|---|---|
| title | scheduler_resource_allocation_error Class | ||||
| ms.date | 11/04/2016 | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 8b40449a-7abb-4d0a-bb85-c0e9a495ae97 |
This class describes an exception thrown because of a failure to acquire a critical resource in the Concurrency Runtime.
class scheduler_resource_allocation_error : public std::exception;| Name | Description |
|---|---|
| scheduler_resource_allocation_error | Overloaded. Constructs a scheduler_resource_allocation_error object. |
| Name | Description |
|---|---|
| get_error_code | Returns the error code that caused the exception. |
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.
exception
scheduler_resource_allocation_error
Header: concrt.h
Namespace: concurrency
Returns the error code that caused the exception.
HRESULT get_error_code() const throw();The HRESULT value of the error that caused the exception.
Constructs a scheduler_resource_allocation_error object.
scheduler_resource_allocation_error(
_In_z_ const char* _Message,
HRESULT _Hresult) throw();
explicit _CRTIMP scheduler_resource_allocation_error(
HRESULT _Hresult) throw();_Message
A descriptive message of the error.
_Hresult
The HRESULT value of the error that caused the exception.