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