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

# 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](https://docs.xbox.com/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_retrieveerrorrecord.md) 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](https://docs.xbox.com/build/console-features/storage/directstorage/directstorage-overview.md).

## Requirements

**Header:** dstorage\_xs.h

**Library:** dstorage\_xs.lib

**Supported platforms:** XBOX Series consoles

## See also

[IDStorageQueueX](https://docs.xbox.com/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex.md)\
[DStorage](https://docs.xbox.com/reference/system/dstorage/dstorage_members.md)


## Related topics

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