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

# PartyManager::GetErrorMessage

> Get the human-readable form of an error generated by the Party library.

Get the human-readable form of an error generated by the Party library.

## Syntax

```cpp theme={null}
PartyError GetErrorMessage(  
    PartyError error,  
    PartyString* errorMessage  
)  
```

### Parameters

**`error`**   PartyError

An error code.

**`errorMessage`**   [PartyString\*](/services/playfab/multiplayer/networking/reference/typedefs)\
*library-allocated output*

The output, human-readable error message. The memory for the returned string remains valid for the lifetime of the process.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise.

## Remarks

These error messages are not localized and are only intended for developers, i.e. these error messages are not intended to be shown to users via UI.

## Requirements

**Header:** Party.h

## See also

[PartyManager](/services/playfab/multiplayer/networking/reference/classes/PartyManager/partymanager)


## Related topics

- [PartyLocalEndpoint::FlushMessages](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_flushmessages.md)
- [PartyLocalEndpoint::SendMessage](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_sendmessage.md)
- [PartyEndpoint::GetDevice](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getdevice.md)
- [PartyEndpoint::GetLocal](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getlocal.md)
- [PartyEndpoint::GetNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getnetwork.md)
