v1.0.0
Latest
2020.3+

Enum FriendsErrorCode

Enumerates the known error causes when communicating with the Friends service. N.B. Error code range for this service: 24000-24999

Namespace: Unity.Services.Friends.Exceptions
Syntax
public enum FriendsErrorCode

Fields

NameDescriptionValue
Unknown

Error unknown

0
GetUserFromHeader

Could not get user id from header

24000
GetProjectIDFromHeader

Could not get project id from header

24001
GetEnvironmentIDFromHeader

Could not get environment id from header

24002
RelationshipAlreadyExists

The relationship already exists

24003
RetrievePaginationLimit

Error parsing pagination limit

24004
NegativePaginationLimit

The pagination limit must be a positive integer

24005
RetrievePaginationOffset

Error parsing pagination offset

24006
NegativePaginationOffset

The pagination offset must be a positive integer

24007
UserTargetingSelf

Error user cannot target self

24008
ActionUnauthorizedWhenBlocked

Error cannot perform action when blocked

24011
FriendshipAlreadyExists

Error friendship already exists

24012
FriendshipDoesNotExist

Error friendship does not exist

24013
SwaggerValidation

Error swagger validation

24016
GetTargetUserFormat

Error invalid target user format

24019
DecodePresenceSchema

Failed to decode presence schema

24020
InvalidAvailability

Error availability has to be an accepted string

24021
MaxPayloadSize

Error max payload size exceeded

24022
RetrievePresenceFlag

Error presence flag should be a boolean

24023
ProjectNotEnabled

Error project should be enabled un Udash

24024
ValidatingJws

Error validating JWS

24025
DecodePlayerIds

Error decoding player IDs

24026
RetrieveSocialProfilesFlag

Error profiles flag should be a boolean

24027
UnknownFlag

Error unknown flag format

24028
DecodeMessageSchema

Error decoding the message schema

24031
DuplicateMember

Error multiple members with the same user ID

24032
InvalidCreateTarget

Error creating relationship with the calling user as the target

24033
InvalidCreateSource

Error creating relationship with a different user than the signed in one as the source

24034
InvalidCreateMissingCaller

Error calling user should be included as a member in the relationship

24035
DecodeXUserHeader

Error decoding x-user header

24036
GetUserTypeFromHeader

Error unknown or invalid x-user-type

24037
GetSessionIDFromHeader

Error invalid session ID from x-user header

24039
InvalidCreateTooManyMembers

Error too many users specified as target

24040
BadRequest

Error code representing HTTP Status Code of 400 for the Friends service. The Friends service cannot process the request because it is invalid.

24400
NotificationConnectionError

Error occurred with the connection to the notification system.

24600
NotificationUnknown

An unknown notification was received from the notification system.

24601
NetworkError

NetworkError is returned when the UnityWebRequest failed with this flag set. See the exception stack trace when this reason is provided for context.

24602
RelationshipNotFound

Relationship not found in local storage

24603