v1.0.0
Latest
2020.3+

Class RelationshipsServiceException

Represents an exception that occurs when communicating with the Unity Relationships Service.

Inheritance
RelationshipsServiceException
Namespace: Unity.Services.Friends.Exceptions
Syntax
[Obsolete("RelationshipsServiceException has been changed to FriendsServiceException.", true)]
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
TypeNameDescription
RelationshipErrorCodereason

The error code or the HTTP Status returned by the service.

Stringmessage

The description of the exception.

ExceptioninnerException

The exception raised by the service, if any.

RelationshipErrorCodeerrorCode

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
TypeDescription
RelationshipErrorCode

Reason

The reason of the exception.

Declaration
[Obsolete("Reason has been changed to StatusCode within the FriendsServiceException.", true)]
public RelationshipErrorCode Reason { get; }
Property Value
TypeDescription
RelationshipErrorCode