docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RelationshipsServiceException

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

    Inheritance
    object
    RelationshipsServiceException
    Namespace: Unity.Services.Friends.Exceptions
    Assembly: Unity.Services.Friends.dll
    Syntax
    [Obsolete("RelationshipsServiceException has been changed to FriendsServiceException.", true)]
    public class RelationshipsServiceException : RequestFailedException

    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
    [Obsolete("Reason has been changed to StatusCode within the FriendsServiceException.", true)]
    public RelationshipErrorCode Reason { get; }
    Property Value
    Type Description
    RelationshipErrorCode
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)