> ## 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.

# XGameUiShowErrorDialogUiCallback

> XGameUiShowErrorDialogUiCallback

# XGameUiShowErrorDialogUiCallback

Signature for a XGameUiShowErrorDialogAsync callback.

## Syntax

```cpp theme={null}
void CALLBACK XGameUiShowErrorDialogUiCallback(
     
     XGameUiCallbackHandle callbackHandle,
     XTaskQueueHandle queue,
     HRESULT errorCode,
     const char* serviceContext,
     void* context
);
```

### Parameters

*callbackHandle*\
Type: XGameUiCallbackHandle

Handle for this callback invocation.

*queue*  
Type: XTaskQueueHandle

insert Handle to the task queue that the UI callback was executed on.

*errorCode*\
Type: HRESULT

Error code to display to the user.

*serviceContext*\
Type: const char\*

The service defined error string to display for the error.

*context*\
Type: void\*

Pointer to dev-provided context.

## Requirements

**Header:** XGameUi.h

**Supported platforms:** Supported only on Steam Deck

## See also

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiSetUiCallbacks](/reference/system/xgameui/functions/xgameuisetuicallbacks)


## Related topics

- [XGameUiUiCallbacks](/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUiShowErrorDialogResult](/reference/system/xgameui/functions/xgameuishowerrordialogresult.md)
- [XGameUiShowMessageDialogUiCallback](/reference/system/xgameui/functions/xgameuishowmessagedialoguicallback.md)
- [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
- [XGameUiShowErrorDialogAsync](/reference/system/xgameui/functions/xgameuishowerrordialogasync.md)
