Class ErrorUtilities
Helper utility class to convert Unity.Networking.Transport error codes to human readable error messages.
Inherited Members
Namespace: Unity.Netcode.Transports.UTP
Assembly: solution.dll
Syntax
public static class ErrorUtilities
Methods
ErrorToString(StatusCode, ulong)
Convert a UTP error code to human-readable error message.
Declaration
public static string ErrorToString(StatusCode error, ulong connectionId)
Parameters
Type | Name | Description |
---|---|---|
StatusCode | error | UTP error code. |
ulong | connectionId | ID of the connection on which the error occurred. |
Returns
Type | Description |
---|---|
string | Human-readable error message. |