docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SessionException

    The exception for session operations.

    Inheritance
    object
    SessionException
    Namespace: Unity.Services.Multiplayer
    Assembly: solution.dll
    Syntax
    public class SessionException : Exception

    Constructors

    SessionException(string, SessionError, Exception)

    Initializes a new instance of the SessionException class with a specified error message, error type, and a reference to the inner exception that is the cause of this exception if any.

    Declaration
    public SessionException(string message, SessionError error, Exception innerException)
    Parameters
    Type Name Description
    string message

    The message that describes the error.

    SessionError error

    The session error type.

    Exception innerException

    The exception that is the cause of the current exception, or null if no inner exception is specified.

    Properties

    Error

    Gets the error type.

    Declaration
    public SessionError Error { get; }
    Property Value
    Type Description
    SessionError

    Methods

    ToString()

    Returns a string representation of the SessionExceptioninstance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current exception with its SessionError and its Exception.Message .

    In This Article
    Back to top
    Copyright © 2026 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)