> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IDStorageQueueX::GetErrorEvent

> IDStorageQueueX::GetErrorEvent

# IDStorageQueueX::GetErrorEvent

Obtains an event to wait on.

## Syntax

```cpp theme={null}
HANDLE GetErrorEvent(  
)  
```

### Parameters

This method has no parameters.

### Return value

Type: HANDLE

HANDLE to an event.

## Remarks

When an error occurs for a read request in this queue, the event will be signalled. Call [IDStorageQueueX::RetrieveErrorRecord](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_retrieveerrorrecord) to retrieve diagnostic information. Call `CloseHandle` after the title no longer needs the event.

For more information, see the "GetErrorEvent/RetrieveErrorRecord" section in [DirectStorage Overview](/build/console-features/storage/directstorage/directstorage-overview).

## Requirements

**Header:** dstorage\_xs.h

**Library:** dstorage\_xs.lib

**Supported platforms:** XBOX Series consoles

## See also

[IDStorageQueueX](/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageQueueX::RetrieveErrorRecord](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_retrieveerrorrecord.md)
- [DirectStorage Overview](/build/console-features/storage/directstorage/directstorage-overview.md)
- [IDStorageQueueX](/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex.md)
- [DSTORAGE_ERROR_RECORD](/reference/system/dstorage/structs/dstorage_error_record.md)
- [DSTORAGE_COMMAND_TYPE](/reference/system/dstorage/enums/dstorage_command_type.md)
