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
Assembly: Unity.Services.Friends.dll
Syntax
public enum FriendsErrorCode
Fields
| Name | Description |
|---|---|
| ActionUnauthorizedWhenBlocked | Error cannot perform action when blocked |
| BadRequest | Error code representing HTTP Status Code of 400 for the Friends service. The Friends service cannot process the request because it is invalid. |
| DecodeMessageSchema | Error decoding the message schema |
| DecodePlayerIds | Error decoding player IDs |
| DecodePresenceSchema | Failed to decode presence schema |
| DecodeXUserHeader | Error decoding x-user header |
| DuplicateMember | Error multiple members with the same user ID |
| FriendshipAlreadyExists | Error friendship already exists |
| FriendshipDoesNotExist | Error friendship does not exist |
| GetEnvironmentIDFromHeader | Could not get environment id from header |
| GetProjectIDFromHeader | Could not get project id from header |
| GetSessionIDFromHeader | Error invalid session ID from x-user header |
| GetTargetUserFormat | Error invalid target user format |
| GetUserFromHeader | Could not get user id from header |
| GetUserTypeFromHeader | Error unknown or invalid x-user-type |
| InvalidAvailability | Error availability has to be an accepted string |
| InvalidCreateMissingCaller | Error calling user should be included as a member in the relationship |
| InvalidCreateSource | Error creating relationship with a different user than the signed in one as the source |
| InvalidCreateTarget | Error creating relationship with the calling user as the target |
| InvalidCreateTooManyMembers | Error too many users specified as target |
| MaxPayloadSize | Error max payload size exceeded |
| NegativePaginationLimit | The pagination limit must be a positive integer |
| NegativePaginationOffset | The pagination offset must be a positive integer |
| NetworkError | NetworkError is returned when the UnityWebRequest failed with this flag set. See the exception stack trace when this reason is provided for context. |
| NotificationConnectionError | Error occurred with the connection to the notification system. |
| NotificationUnknown | An unknown notification was received from the notification system. |
| ProjectNotEnabled | Error project should be enabled un Udash |
| RelationshipAlreadyExists | The relationship already exists |
| RelationshipNotFound | Relationship not found in local storage |
| RetrievePaginationLimit | Error parsing pagination limit |
| RetrievePaginationOffset | Error parsing pagination offset |
| RetrievePresenceFlag | Error presence flag should be a boolean |
| RetrieveSocialProfilesFlag | Error profiles flag should be a boolean |
| SwaggerValidation | Error swagger validation |
| Unknown | Error unknown |
| UnknownFlag | Error unknown flag format |
| UserTargetingSelf | Error user cannot target self |
| ValidatingJws | Error validating JWS |