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

# XblErrorCondition

> XblErrorCondition

# XblErrorCondition

定義 XBOX Live API 錯誤狀況的列舉值。

## 語法

```cpp theme={null}
enum class XblErrorCondition  : uint32_t  
{  
    NoError = 0,  
    GenericError,  
    GenericOutOfRange,  
    Auth,  
    Network,  
    HttpGeneric,  
    Http304NotModified,  
    Http404NotFound,  
    Http412PreconditionFailed,  
    Http429TooManyRequests,  
    HttpServiceTimeout,  
    Rta  
}  
```

## 常數

| 常數 | 描述 |
| - | - |
| NoError | 沒有錯誤。 |
| GenericError | 一般錯誤狀況。 |
| GenericOutOfRange | 與物件超出範圍相關的錯誤狀況。 |
| Auth | 與嘗試驗證相關的錯誤狀況。 |
| Network | 與網路連線相關的錯誤狀況。 |
| HttpGeneric | 與 HTTP 方法呼叫相關的錯誤狀況。 |
| Http304NotModified | 要求的資源未修改。 |
| Http404NotFound | 找不到要求的資源。 |
| Http412PreconditionFailed | 在伺服器上測試時，一或多個要求標頭欄位中提供的前置條件評估為 false。 |
| Http429TooManyRequests | 用戶端傳送太多要求 |
| HttpServiceTimeout | 服務在嘗試處理要求時逾時。 |
| Rta | 與即時活動相關的錯誤。 |

## 備註

最佳做法是使用 [XblGetErrorCondition](/zh-TW/reference/live/xsapi-c/errors_c/functions/xblgeterrorcondition)，針對這些錯誤狀況測試傳回的 HRESULT。

## 需求

**標頭：** errors\_c.h

## 另請參閱

[errors\_c](/zh-TW/reference/live/xsapi-c/errors_c/errors_c_members)


## Related topics

- [XblGetErrorCondition](/zh-TW/reference/live/xsapi-c/errors_c/functions/xblgeterrorcondition.md)
- [XblTitleStorageETagMatchCondition](/zh-TW/reference/live/xsapi-c/title_storage_c/enums/xbltitlestorageetagmatchcondition.md)
- [適用於 GDK 的 Unity C# API 包裝函式](/zh-TW/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [從遊戲儲存空間下載 Blob](/zh-TW/services/xbox-services/storage/title-storage/how-to/live-downloading-title-storage-blob.md)
- [XblTitleStorageDownloadBlobAsync](/zh-TW/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragedownloadblobasync.md)
