v1.0.0
Latest
2022.3+
Class RelayServiceException
Represents an exception that occurs when communicating with the Unity Relay Service.
Inherited Members
Namespace: Unity.Services.Relay
Syntax
public class RelayServiceException : RequestFailedException
Constructors
RelayServiceException(Exception)
Creates a RelayServiceException.
Declaration
public RelayServiceException(Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | innerException | The exception raised by the service, if any. |
RelayServiceException(Int64, String)
Creates a RelayServiceException.
Declaration
public RelayServiceException(long errorCode, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | errorCode | The error code or the HTTP Status returned by the service. |
System.String | message | The description of the exception. |
RelayServiceException(RelayExceptionReason, String)
Creates a RelayServiceException.
Declaration
public RelayServiceException(RelayExceptionReason reason, string message)
Parameters
Type | Name | Description |
---|---|---|
RelayExceptionReason | reason | The error code or the HTTP Status returned by the service. |
System.String | message | The description of the exception. |
RelayServiceException(RelayExceptionReason, String, Exception)
Creates a RelayServiceException.
Declaration
public RelayServiceException(RelayExceptionReason reason, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
RelayExceptionReason | reason | The error code or the HTTP Status returned by the service. |
System.String | message | The description of the exception. |
System.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 |
---|---|
ErrorResponseBody |
Reason
The reason of the exception.
Declaration
public RelayExceptionReason Reason { get; }
Property Value
Type | Description |
---|---|
RelayExceptionReason |