# get_error_operation_id

Returns the ID of the last failed operation.

## Syntax

unsigned int get_error_operation_id()

## Description

This method returns the ID of the last failed operation. If the error occurs during the execution of an asynchronous operation, the asynchronous thread stops executing the queue of the asynchronous operations and waits for new user requests.

To obtain the error status of the failed operation, use the wait() and get_status() methods.

## Return Values

ID of last failed operation.

Parent topic: Intel's C++ Asynchronous I/O Class for Windows* Operating Systems