docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ErrorUtilities

    Helper utility class to convert Unity.Networking.Transport error codes to human readable error messages.

    Inheritance
    object
    ErrorUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.Transports.UTP
    Assembly: Unity.Netcode.Runtime.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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)