Class CommonMultiplayerBackendServiceException
Represents an exception that occurs when communicating with the Unity Common Multiplayer Backend Service.
Implements
Inherited Members
Namespace: Unity.Services.CommonMultiplayerBackend .Exceptions
Assembly: Unity.Services.Multiplayer.dll
Syntax
public class CommonMultiplayerBackendServiceException : RequestFailedException, ISerializable
Constructors
CommonMultiplayerBackendServiceException(Exception)
Creates a CommonMultiplayerBackendServiceException.
Declaration
public CommonMultiplayerBackendServiceException(Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Exception | innerException | The exception raised by the service, if any. |
CommonMultiplayerBackendServiceException(long, string)
Creates a CommonMultiplayerBackendServiceException.
Declaration
public CommonMultiplayerBackendServiceException(long errorCode, string message)
Parameters
Type | Name | Description |
---|---|---|
long | errorCode | The error code or the HTTP Status returned by the service. |
string | message | The description of the exception. |
CommonMultiplayerBackendServiceException(CommonMultiplayerBackendExceptionReason, string)
Creates a CommonMultiplayerBackendServiceException.
Declaration
public CommonMultiplayerBackendServiceException(CommonMultiplayerBackendExceptionReason reason, string message)
Parameters
Type | Name | Description |
---|---|---|
Common |
reason | The error code or the HTTP Status returned by the service. |
string | message | The description of the exception. |
CommonMultiplayerBackendServiceException(CommonMultiplayerBackendExceptionReason, string, Exception)
Creates a CommonMultiplayerBackendServiceException.
Declaration
public CommonMultiplayerBackendServiceException(CommonMultiplayerBackendExceptionReason reason, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Common |
reason | The error code or the HTTP Status returned by the service. |
string | message | The description of the exception. |
Exception | innerException | The exception raised by the service, if any. |
Properties
ApiError
If applicable, the specific details of the API error that caused the exception.
Declaration
public ErrorResponseBody ApiError { get; }
Property Value
Type | Description |
---|---|
Error |
Reason
The reason of the exception.
Declaration
public CommonMultiplayerBackendExceptionReason Reason { get; }
Property Value
Type | Description |
---|---|
Common |