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

# XblGetErrorCondition

> XblGetErrorCondition

# XblGetErrorCondition

Groups HRESULT values returned from Xbl APIs in to error condition buckets that are actionable.

## Syntax

```cpp theme={null}
XblErrorCondition XblGetErrorCondition(  
         HRESULT hr  
)  
```

### Parameters

*hr*   \_In\_\
Type: HRESULT

HRESULT value returned from an Xbl API.

### Return value

Type: XblErrorCondition

The corresponding XblErrorCondition.

## Requirements

**Header:** errors\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

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


## Related topics

- [XblErrorCondition](/reference/live/xsapi-c/errors_c/enums/xblerrorcondition.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XblHttpCallGetNetworkErrorCode](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnetworkerrorcode.md)
- [PartyXblLocalChatUserDestroyedStateChange](/services/playfab/multiplayer/networking/xblreference/structs/partyxbllocalchatuserdestroyedstatechange.md)
- [PartyXblGetEntityIdsFromXboxLiveUserIdsCompletedStateChange](/services/playfab/multiplayer/networking/xblreference/structs/partyxblgetentityidsfromxboxliveuseridscompletedstatechange.md)
