v1.0.0
Latest
2020.3+

Class FriendsServiceException

Represents an exception that occurs when communicating with the Unity Friends service.

Inheritance
FriendsServiceException
Namespace: Unity.Services.Friends.Exceptions
Syntax
public class FriendsServiceException : RequestFailedException, ISerializable, _Exception

Constructors

FriendsServiceException(HttpStatusCode, String, Exception, FriendsErrorCode)

Creates a FriendsServiceException.

Declaration
public FriendsServiceException(HttpStatusCode statusCode, string message, Exception innerException, FriendsErrorCode errorCode = FriendsErrorCode.Unknown)
Parameters
TypeNameDescription
HttpStatusCodestatusCode

The HTTP Status returned by the service.

Stringmessage

The description of the exception.

ExceptioninnerException

The exception raised by the service, if any.

FriendsErrorCodeerrorCode

The error code to be used when raising the issue to the SDK user.

Properties

ErrorCode

Specific error code

Declaration
public FriendsErrorCode ErrorCode { get; }
Property Value
TypeDescription
FriendsErrorCode

Reason

The reason of the exception.

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

StatusCode

The HTTP status code of the exception

Declaration
public HttpStatusCode StatusCode { get; }
Property Value
TypeDescription
HttpStatusCode