Class RelationshipsServiceException
Represents an exception that occurs when communicating with the Unity Relationships Service.
Namespace: Unity.Services.Friends.Exceptions
Syntax
public class RelationshipsServiceException : RequestFailedException, ISerializable, _Exception
Constructors
RelationshipsServiceException(RelationshipErrorCode, String, Exception, RelationshipErrorCode)
Creates a FriendsServiceException.
Declaration
public RelationshipsServiceException(RelationshipErrorCode reason, string message, Exception innerException, RelationshipErrorCode errorCode = RelationshipErrorCode.Unknown)
Parameters
| Type | Name | Description |
|---|---|---|
| RelationshipErrorCode | 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. |
| RelationshipErrorCode | errorCode | The error code to be used when raising the issue to the sdk user. |
Properties
ErrorCode
Specific error code
Declaration
public RelationshipErrorCode ErrorCode { get; }
Property Value
| Type | Description |
|---|---|
| RelationshipErrorCode |
Reason
The reason of the exception.
Declaration
public RelationshipErrorCode Reason { get; }
Property Value
| Type | Description |
|---|---|
| RelationshipErrorCode |