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

# XErrorOptions

> XErrorOptions

# XErrorOptions

게이밍 OS 또는 게이밍 런타임에서 오류가 발생할 때 게임이 어떻게 동작해야 하는지를 설명합니다.

## 구문

```cpp theme={null}
enum class XErrorOptions  : uint32_t  
{  
    None = 0x00,  
    OutputDebugStringOnError = 0x01,  
    DebugBreakOnError = 0x02,  
    FailFastOnError = 0x04,  
}  
```

## 상수

| 상수                       | 설명                                                                                                           |
| ------------------------ | ------------------------------------------------------------------------------------------------------------ |
| None                     | 오류가 발생할 때 아무 것도 하지 않습니다.<br />디버거가 없는 경우 기본 옵션입니다.                                                           |
| OutputDebugStringOnError | 오류가 발생할 때 디버그 메시지를 출력합니다.<br />디버거가 있는 경우 기본 옵션입니다.                                                          |
| DebugBreakOnError        | 오류가 발생할 때 디버거로 중단하고 디버그 메시지를 출력합니다.                                                                          |
| FailFastOnError          | 오류가 발생할 때 호출 프로세스를 즉시 종료하는 [빠른 실패](https://learn.microsoft.com/cpp/intrinsics/fastfail?view=vs-2019)를 요청합니다. |

## 설명

**XErrorOptions**는 [XErrorSetOptions](/reference/system/xerror/functions/xerrorsetoptions) 함수에서 디버거 존재 여부에 따라 오류가 발생할 때 게임이 어떻게 동작해야 하는지 설명하는 데 사용됩니다. `OutputDebugStringOnError` 또는 `DebugBreakOnError`가 지정되고 디버거가 있으면, HRESULT 오류 코드, 현재 스레드 ID 및 오류 메시지를 포함하는 디버그 문자열이 디버거에 전송되어 표시됩니다. `DebugBreakOnError`가 지정되면 게임은 디버거로 중단됩니다.

## 요구 사항

**헤더:** XError.h

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

## 함께 보기

[XError 멤버](/reference/system/xerror/xerror_members)\
[XErrorSetOptions](/reference/system/xerror/functions/xerrorsetoptions)


## Related topics

- [XErrorSetOptions](/ko/reference/system/xerror/functions/xerrorsetoptions.md)
- [XError members](/ko/reference/system/xerror/xerror_members.md)
- [XMemSetOption](/ko/reference/system/xmem/functions/xmemsetoption.md)
- [DSTORAGE_REQUEST_OPTIONS](/ko/reference/system/dstorage/structs/dstorage_request_options.md)
- [PartyManager::GetOption](/ko/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getoption.md)
