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

# XGameUiShowErrorDialogAsync

> XGameUiShowErrorDialogAsync

# XGameUiShowErrorDialogAsync

지정된 오류 코드에 대해 서비스에서 정의한 오류 문자열이 포함된 오류 대화 상자 UI를 표시합니다.

## 구문

```cpp theme={null}
HRESULT XGameUiShowErrorDialogAsync(  
         XAsyncBlock* async,  
         HRESULT errorCode,  
         const char* context  
)  
```

### 매개 변수

*async*   \_In\_<br />형식: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

[XAsyncRun](/reference/system/xasync/functions/xasyncrun)에 전달되는 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)에 대한 포인터입니다.

*errorCode*   \_In\_<br />형식: HRESULT

UI를 표시할 오류 코드입니다.

*context*   \_In\_opt\_<br />형식: char\*

오류에 대해 표시할 서비스 정의 오류 문자열입니다.

### 반환 값

형식: HRESULT

비동기 호출의 HRESULT 성공 또는 오류 코드입니다.

## 설명

버그를 신고할 수 있도록 XBOX Insider용 "Report a Problem"과 같은 추가 버튼이 필요에 따라 대화 상자에 표시될 수 있습니다.

사용자가 오류 대화 상자를 해제하면 비동기 작업이 완료됩니다.

UI를 호출하면 게임이 *제한 모드(constrained mode)* 로 전환됩니다. 제한 모드에서는 호출된 UI의 백그라운드에 있는 동안 타이틀이 더 적은 시스템 리소스를 받게 됩니다. 제한 모드 및 타이틀의 기타 작동 모드에 대해 자세히 알아보려면 [XBOX 게임 수명 주기(NDA 항목)](/build/console-features/console-workflows/xbox-game-life-cycle)를 참조하세요.

## 요구 사항

**헤더:** XGameUI.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, Steam Deck, XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XGameUI](/reference/system/xgameui/xgameui_members)<br />[XGameUIShowErrorDialogResult](/reference/system/xgameui/functions/xgameuishowerrordialogresult)<br />[XBOX 게임 수명 주기(NDA 항목)](/build/console-features/console-workflows/xbox-game-life-cycle)


## Related topics

- [XGameUiShowErrorDialogResult](/ko/reference/system/xgameui/functions/xgameuishowerrordialogresult.md)
- [XGameUiShowErrorDialogUiCallback](/ko/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
- [XGameUiSetErrorDialogUiResponse](/ko/reference/system/xgameui/functions/xgameuiseterrordialoguiresponse.md)
- [XGameUiUiCallbacks](/ko/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUI](/ko/reference/system/xgameui/xgameui_members.md)
